crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Define `#system_echo` and `#system_raw` on all systems

Open HertzDevil opened this issue 1 year ago • 0 comments

Follow-up to #12294. The breaking changes are:

  • #noecho! and #raw! return nil instead of LibC.tcsetattr's return value;
  • The *_from_tc_mode! macros are now deprecated.

Later we should probably deprecate Termios as well, since it is now only used from within src/crystal/system/unix/file_descriptor.cr.

I have no idea if these functions make sense on WASI. They are left unimplemented.

HertzDevil avatar Aug 03 '22 07:08 HertzDevil