<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>P {MARGIN-TOP: 0mm; MARGIN-BOTTOM: 0mm}</style>
</head>
<body>
<div style="FONT-FAMILY: Arial; FONT-SIZE: 10pt" id="ezFormProc_div">
<div style="FONT-FAMILY: Arial" id="msgbody">
<div>
<div style="LINE-HEIGHT: 15pt"><br>
Hi, Valids and others</div>
<div style="LINE-HEIGHT: 15pt">I saw the email replies only yesterday afternoon. Reading those and other internet posts, reallized my shell on the LCD is working as a console.</div>
<div style="LINE-HEIGHT: 15pt">(When I type tty, it responds with 'console'). So I set the boot argument 'console' back to ttyS (serial port) and removed the etc/inittab so that default inittab will take effect. Default inittab starts shell on tty2, tty3 and
tty4. And I ran it and vola! the console is in the UART terminal and I could switch to different shell windows by pressing Alt-F2, Alt-F3 and Alt-F4. I now have console on the UART terminal and 3 shells on the LCD which I can switch between.</div>
<div style="LINE-HEIGHT: 15pt">Thanks all for good suggestions (not only this Ctrl-C but others like printf system call source location..).</div>
<div style="LINE-HEIGHT: 15pt">Best regards,</div>
<div style="LINE-HEIGHT: 15pt">Chan</div>
<div style="LINE-HEIGHT: 15pt" id="MailSign"><br>
</div>
<div style="LINE-HEIGHT: 15pt">
<hr tabindex="-1">
</div>
<div style="LINE-HEIGHT: 15pt"><b>From : </b>"Valdis.Kletnieks@vt.edu" <Valdis.Kletnieks@vt.edu><br>
<b>Sent : </b>2014-04-01 23:13:49 ( +09:00 )<br>
<b>To : </b>Chan Kim <ckim@etri.re.kr><br>
<b>Cc : </b>kernelnewbies@kernelnewbies.org <kernelnewbies@kernelnewbies.org><br>
<b>Subject : </b>Re: Ctrl-C doesn't work in the shell<br>
<br>
On Tue, 01 Apr 2014 05:57:05 -0000, Chan Kim said:<br>
> When I'm on a sheel on LCD using USB keyboard, all works fine (except another<br>
> important problem..) but Ctrl-C key doesn't work.<br>
> When I press ctrl-C, '^C' is displayed on the screen (prompt line), but<br>
> doesn't have the effect of killing the job. For example, I start ping and it<br>
> displays the response every second, but even if I press Ctrl-C, it contiues<br>
> pinging. What should I do?<br>
<br>
This often happens if you've managed to launch a shell that doesn't set itself<br>
up as "interactive" and/or acquire a control terminal.<br>
<br>
Quick test - if you do a 'ps', does the shell process show up with a ? or with<br>
a tty<SOMETHING>? If it shows ?, it hasn't gotten a control terminal.<br>
<br>
Your shell may have a '-i' flag to make it interactive and/or a '-l' to<br>
make it be a login shell, those flags may be an easy way to fix the problem.<br>
</div>
</div>
</div>
</div>
</body>
</html>