[TUHS] echo in v6/v7/sysvr2

Will Senn will.senn at gmail.com
Wed Dec 29 07:15:41 AEST 2021

Is it possible to use echo to send a vt-100 escape sequence in v6/v7/sysvr2?

I can write a c program to clear the screen and go home in sysvr2:

#define ASCII_ESC 27
     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 :)?.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20211228/c2ad24b7/attachment.htm>

More information about the TUHS mailing list