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) erco77 12:09 Apr 23  
 

Actually, I think it's important the terminal let bad ESC sequences through, or you'll never know there's a problem. In the old days you'd read the manual for physical terminals and use only the codes they recommended, and if you send garbage to the terminal (such as cat'ing a binary file), the behavior's "undefined", which ranges from just passing thru the garbage to hanging the tty firmware.

I think letting the characters past the ESC sequence is informative in determining that there is an issue; it might be fatal to the operation of the program if ESC codes are malformed, so it should be clear something is wrong, and not try to second guess what the user should see. esp. considering all the possible ways an ESC code can be mangled; you can't tell what to ignore and what is non-esc sequence data.


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/2073221483@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'.