lkml.org 
[lkml]   [2003]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Turning off automatic screen clanking
From
Richard B. Johnson said:
<snip>
> It is impossible to send escape sequences to an input that does
> not exist. That's why I need to know how to stop the kernel's
> insistence on turning off the screen.

from 'strace setterm -blank 0':

write(1, "\33[9;0]", 6) = 6

which means you want to write the escape sequence to standard output (fd
1), or /dev/tty0 if your code is not attached to the current console. This
should be independent of any input devices that may or may not be there.

--
Charles Lepple <ghz.cc!clepple>
http://www.ghz.cc/charles/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.055 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site