I'm actually trying to open a school project, it works perfectly, but I Used to handle signals (e.g. ^ C
and ^ D
for example).
So I used the hint lib (I'm on the maverick OS), and it seems to work properly, I will not leave my shell but it's still a little there is a problem.
^
still appears in my post, and I do not want it to be displayed.
I used the signal function: hint (SIGINT, do_nothing);
do_nothing
function includes:
zero do_nothing (int sig) {if (sig) {; }}
How do I delete the symbol?
Whether your program handles signals, the terminal driver has its own behavior (for example, Manual view page), ECHOCTL
setting is relevant:
ECHOCTL (not in POSIX) If ECO is also set, additional terminal special characters of the tab, NL, start , And SOTP is seen as X, where x is character with ASCII code which is more than a special character 0x40 is For example, the letter 0x08 (BS) is represented as ^ H. [_BSD_SOURCE or _SVID_SOURCE]
To get an idea of exactly what your program really needs, start by getting acquainted with the canonical mode described in the glossary
versus options like raw mode note that they are created from different types of (sometimes) interrelated settings, so you can start by modifying the existing settings to change that feature. Which you are interested I
No comments:
Post a Comment