Does anybody know how to simulate press Fn+Scroll Lk in Linux c


 
Thread Tools Search this Thread
Top Forums Programming Does anybody know how to simulate press Fn+Scroll Lk in Linux c
# 8  
Old 04-28-2009
Meaning, the program doesn't have access to that, either. Smilie Terminal scroll locking is not something the program is ever supposed to have control over. Sending data when not requested could mean data loss, so it really doesn't until told.

But at least it will work in a virtual console, unlike the scroll-lock key. The scroll-lock key only works on physical text consoles(which are probably available via ctrl-alt-f1 through ctrl-alt-f6, if you're curious. ctrl-alt-f7 to get back to X11.)

Last edited by Corona688; 04-28-2009 at 12:34 PM..
# 9  
Old 04-28-2009
Perhaps your program could do a sort of virtual scroll lock instead. Instead of locking the console, it could just not print?
# 10  
Old 04-28-2009
Hi jim mcnamara,

Do you mean I don't need to realize this function because tty driver has already

provided this.

Thank you!



Quote:
Originally Posted by jim mcnamara
Unix has ctrl-s - "lock" ctrl-q "unlock" already builtin to consoles.
The tty driver does this for you.
# 11  
Old 04-29-2009
Quote:
Originally Posted by liuyan03
Do you mean I don't need to realize this function because tty driver has already provided this.
The TTY driver lets the client lock and unlock. It doesn't let your program lock or unlock.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Programming

Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX

Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies

2. What is on Your Mind?

Volunteers for Unix Linux News Site (Word Press)

We are thinking to replace our "not very popular blog" with a "news channel" using the Wordpress newswire 1.2 theme. Anyone interested in volunteering to be a "reporter", "writer" or "editor"? ---------- Post updated at 09:18 ---------- Previous update was at 09:15 ---------- OBTW, I got... (0 Replies)
Discussion started by: Neo
0 Replies

3. Shell Programming and Scripting

simulate linux shell using script

hi guys I was requested to create a script to simulate a linux shell so when the user opens linux he will get my linux menu with some options and one of those is a simulated linux shell this is my code #!/bin/ksh while do read whichcmd?"Enter Command: " $whichcmd ... (5 Replies)
Discussion started by: kopper
5 Replies
Login or Register to Ask a Question