![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| get terminal width and cursor position | Sreejesh.S | High Level Programming | 0 | 05-16-2008 04:02 AM |
| Command to know the terminal cursor position | aneesha | HP-UX | 3 | 09-02-2007 03:16 PM |
| Cursor Global Position | boogy | High Level Programming | 3 | 02-12-2007 07:18 AM |
| Cursor position | gefa | UNIX for Dummies Questions & Answers | 3 | 03-17-2006 07:07 AM |
| Get the cursor position | bestbuyernc | Shell Programming and Scripting | 0 | 07-27-2005 01:59 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
Pleae help me on this. Normally, when we say read username, the cursor will come in the first position of next line, but I want the output of the below Normal usage ------------- please enter username: _ [cursor should blink in this position.] I want like the below ---------------------- please enter username: [space_space_space_space_] _ [cursor should blink in this position.] I tried \t also, but not working |
| Forum Sponsor | ||
|
|
|
|||
|
Or you could try this if you don't know exactly what row your cursor may end up on while running the script.
printf "Please Enter User Name:\n\t\t\t" read username Or, for output on the same line. printf "Please Enter User Name: " read username |
|||
| Google The UNIX and Linux Forums |