[TUHS] echo in v6/v7/sysvr2

Steffen Nurpmeso steffen at sdaoden.eu
Wed Dec 29 07:49:19 AEST 2021


Will Senn wrote in
 <84e6263e-f990-cf9d-b988-55d15217771f at gmail.com>:
 |Is it possible to use echo to send a vt-100 escape sequence in v6/v7/sys\
 |vr2?
 |
 |I can write a c program to clear the screen and go home in sysvr2:
 |
 |#define ASCII_ESC 27
 |main()
 |{
 |     printf( "%c[2J", ASCII_ESC );
 |     printf( "%c[H", ASCII_ESC );
 |}
 |
 |and it works fine. I can type the escape sequences in as well, but I'd 
 |just as soon write a shell script with an echo '[[2J;[[H' or something 
 |similar without having to compile a clear command. Is it possible and 
 |what do I need to know :)?.

cat is considered harmful.
Is it???

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)


More information about the TUHS mailing list