FLTK logo

Re: [fltk/fltk] Fl_Terminal control character handling (Issue #950)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Fl_Terminal control character handling (Issue #950) Matthias Melcher 10:51 Apr 23  
 

I was curious. So on the Ubuntu terminal, echo -e "\0033]31;47m $USER \0033[0m" prints nothing, and echo -e "\0033p31;47m $USER \0033[0m" skips the p and prints the rest of the text 31;47m matt. I have also seen terminal emulators that output entire error messages when they encounter esc sequences that they don't know.

I don't know if there is an official RFC for unknown code, but I assume that ignoring the \0033 and the everything up to and including the next letter is a good thing, so that echo -e "\033[1mHello\033[0m" would print a very readable Hello, even if the terminal does not understand the esc sequence for the "bold" attribute.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/950/2073034703@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.