Sponsored Content
Top Forums Programming How do you detect keystrokes in canonical mode? Post 302573674 by Ultrix on Tuesday 15th of November 2011 08:33:09 AM
Old 11-15-2011
How do you detect keystrokes in canonical mode?

I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects arrow keys in canonical mode. Originally I thought that there was some process signal that the shell receives when an escaped character is entered, but I've tested all the process signals in signal.h (defined in bits/signum.h) and none of them get sent when I press the arrow keys. How can you detect arrow keys in canonical mode?
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

recording keystrokes in vi

What is the syntax for recording command in vi. If I want to repeat a command over and over. My file is 12/01/05,,adsmte,9,0,0 12/02/05,,adsmte,12,0,0 12/03/05,,adsmte,10,0,0 12/04/05,,adsmte,11,0,0 12/05/05,,adsmte,10,0,0 12/06/05,,adsmte,10,0,0 12/01/05,,tsmpc1,57,1,2... (5 Replies)
Discussion started by: reggiej
5 Replies

2. Shell Programming and Scripting

tool to emulate keystrokes out to a ps/2 device?

hey all, i am trying to connect my mac to my sony DVD changer so that i can control one aspect of it with any kind of shell script or program. the DVD player allows you to plug in a PS/2 keyboard to navigate it's on screen menu. what i want to do is use my mac to navigate my own menus, then... (0 Replies)
Discussion started by: drzoomn
0 Replies

3. Programming

Help with stdin and non-canonical mode

I am writing a more command for my class, and have it most of the way done, but with my current implimentation when I pipe stdin to my code it doesnt use my non-canonical/non echo settings I set for the terminal window. Do I need to specify a different terminal in order for this to work ? It works... (1 Reply)
Discussion started by: petricore
1 Replies

4. UNIX for Dummies Questions & Answers

Looking for an X11 Utility - Send Keystrokes to Multiple Clients

A long time ago, I frequently used a small X11 utility that allows you to manage multiple systems at the same time. It worked by opening a small window that had a button you used to "Add" X Clients to it. These would be xterms on different systems for example. You would then type inside that... (5 Replies)
Discussion started by: Alon.Albert
5 Replies

5. Shell Programming and Scripting

Queueing keystrokes

Hello, I have a ksh which can be run interactively with read etc waiting for input and so forth. Do you have an idea how can I invoke the ksh and supply a sequence of keystrokes that will feed the executable flow so that it will automatically run as if someone actually walked through one prompt... (7 Replies)
Discussion started by: gio001
7 Replies

6. OS X (Apple)

Any mac software for recording keystrokes

I'm trying to find a good keylogger that doesn't come with any viruses. It happens to me several times that my browser crashes when I am in article writing or some other thing, very annoying. Thus, I need a keylogger to keep all my keystroke recorded. I 'v tried some, like the Aobo Mac Keylogger,... (1 Reply)
Discussion started by: Bluerosen
1 Replies

7. UNIX for Advanced & Expert Users

Sending keystrokes to another process

The third-party ERP system used by our company has no idle-out facility and we sometimes have issues because users simply walk away from their computers and leave sessions logged in for hours or even go home without logging out. (We are in a factory environment so it is hard to raise the care... (7 Replies)
Discussion started by: Wayne Ivory
7 Replies

8. Solaris

DNS service is in maintenance mode. How to bring it back to online mode?

: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)
Discussion started by: vamshigvk475
2 Replies

9. Shell Programming and Scripting

Record and re-use keystrokes

We have a FORTRAN program that creates a report for our client. The client makes a number of selections as to what will appear on the report. However, the client has to repeat this everytime the report is run. I am trying to find a way to record what they've selected (their keystrokes) in UNIX and... (22 Replies)
Discussion started by: KathyB148
22 Replies
SMBC(1) 							  Samba Commander							   SMBC(1)

NAME
smbc - Text mode SMB network commander. DESCRIPTION
Samba Commander is a text mode SMB network commander. With SMBC, you can browse your local network or use the search function to find files in a share. You can also download/upload files and directories or create them both locally and remotely. SMBC features the resume capabil- ity and UTF-8 encoding support. OPTIONS
-V --version Displays the version of Smbc. -h --help Prints a help message describing all Smbc's command-line options. -f --flush Flushes all download lists. All files from ~/.smbc/ with dulist* name will be removed. In next run of Smbc the download/upload list will be empty. -l --list Shows all download lists from ~/.smbc/. -s INT --show=INT Displays all items from list with INT number. You can get all numbers from the list executing smbc -l command. -p --sleep Sleeps Smbc. Smbc doesn't download/upload any files when executing even if some file is waiting in queue. -m STRING --message=STRING Receives message from samba. If you want that Smbc receives WinPopup message you must add the line below to smb.conf message command = /path_to/smbc -m 'message from %f on %m' -i %s; rm %s Now if you have running Smbc and someone sends you a WinPopup message Smbc immediately displays it. If you don't run a Smbc all WinPopup messages wait for executing a Smbc. -i STRING --file=STRING Sets file with samba message, usage only with -m. MENUS AND KEYS
At top of the main menu is mini status bar. There is displayed small help with functions. When Smbc downloads/uploads any file in mini sta- tus bar is displayed progress of downloading/uploading. main menu - keys (arrow-up) (p) - move one item up (arrow-down) (o) - move one item down (tab) (i) - change selected column (t) - group/ungroup catalog or files (end) (u) - go to the end off list (home) (y) - go to the start off list (F5) (d) - download/upload selected files and directories (w) - reverse sorting (enter) (x) - execute a workgroup, host, share or directory (insert) (a) - select or unselect one item (page up) (l) - move one screen up (page down) (k) - move one screen down (F8) (ctrl+d) - delete selected files and directories (F7) (c) - create directory (F3) (v) - view text file, execute workgroup, host, share or directory (g) - go to workgroup, host, share in remote host (e) - change type of sorting (s) - edit download/upload list (m) - send a WinPopup message (b) - bookmark (bb) - add item to bookmark (q) - exit from Smbc download/upload list menu - keys (q) - exit from this menu (del) (d) - set selected item to delete (u) - set selected item to undelete (m) - mark/unmark selected item (space) - pause/resume selected item download (ctrl+d) - delete all dirs and subdirs for selected item (ctrl+f) - flush all items (arrow-right) (.) - add 1 second to delay time (arrow-left) (,) - take off 1 second from delay time (shift+arrow-right) (>) - add 60 seconds to delay time (shift+arrow-left) (<) - take off 60 seconds from delay time (;) - add 1 second to delay time for all items (') - take off 1 second from delay time for all items (:) - add 60 seconds to delay time for all items (") - take off 60 seconds from delay time for all items (|) - copy current item delay time to all items (n) - set try download now to select item (N) - set try download now to all items bookmark list menu - keys (q) - exit from this menu (b) - add item to bookmark and exit (del) (d) - set selected item to delete (u) - set selected item to undelete (m) - mark/unmark item (enter) (x) - go to selected item message when connection broken - keys (arrow-up) (.) - add 1 second to delay time (arrow-down) (,) - take off 1 second from delay time (shift+arrow-up) (>) - add 60 seconds to delay time (shift+arrow-down) (<) - take off 60 seconds from delay time find file menu - keys > input items < (enter) (tab) - go to the next item (ctrl+p) - enable/disable interactive filtering (ctrl+k) - exit from find file menu > select items < (tab) - go to the next item (enter) - go to selected file (q) - quit AVAILABILITY
The latest version of this program can be found at http://smbc.airm.net. SEE ALSO
README BUGS
You are welcome to send bug reports about Smbc to <smbc@airm.net>. SEE ALSO
smbc(1) AUTHOR
Originally written by Rafal Michniewicz <rafim@data.pl>. SMBC Version 1.1.2 February 2005 SMBC(1)
All times are GMT -4. The time now is 10:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy