Using stty raw is only half of the problem. When the BBS software exits, you need to restore the stty settings to what they were before you went into raw mode before returning to your user.
If you ever get stuck because a program exited while in raw mode, you can get back to a semi-sane setting by using:
where CTL-J means hold down the CTL or control key on your keyboard and while you are holding it down hit and release the J key (and then you can release the control key). After you have entered the first line of that, hopefully you will be back in a sane cooked state, but there is a good chance that the erase and kill characters that you are used to using have not been reset to the values you expect. The stty -a output will tell you what stty sane set up for you.
It would be a good idea to run stty -a and look at the stty man page on your system so you can understand what the output you see from stty -a means. The stty utility is covered by the standards, but the output format varies from operating system to operating system.
You haven't said what language you're using for this project. If you were writing standard shell code to invoke your Mystic BBS software and we make the wild assumption that you do so by invoking a utility named mystic, you would want something like:
Hope this helps.
Last edited by Don Cragun; 04-12-2019 at 11:05 PM..
Reason: Fix suggestion...
This User Gave Thanks to Don Cragun For This Post:
I am trying to set my backspace key as the erase key
right now I have to type CONTROL-H to delete.
Can you please tell me the command to set my backspace
as the erase key...... (1 Reply)
Hi All,
I used to have my suse linux(VM) server in graphic mode but not anymore since morning. I cant rolback since i loose somuch work. Any idea how to it back to normal. Thanks (6 Replies)
Hello,
I am trying to configure a serial port, for mac os x 10.6. I believe I can use the stty command to look at serial port configuration and or change the serial port settings. I read the man page, but I don't really know what I am doing. Any help? (0 Replies)
Hi All,
Can please let me know what is the difference between the single line mode and multi line mode in regular expresions?
Thanks,
Chidhambaram B (3 Replies)
Hi ,
I have shell scripting in linux box. This script is mentioned that should be run under the one particular user. If you run that mentioned user location then it is working fine....
Suppose if you are trying run from some other user like as mentioned below
sudo su - gxadm -c script.sh
... (1 Reply)
:confused:
when i tried to look the status of DNS-client, it is in maintenance mode.....
Please tell me how to bring it back to online mode...PLEASE TELL ME STEP BY STEP.... PLEASE...
:wall: (2 Replies)