PROMPT(1)PROMPT(1)NAME
prompt - give any program command-line editing facilities
SYNOPSIS
prompt
DESCRIPTION
prompt is a simple wrapper which provides command-line editing for programs that do not have it.
Not all programs with a command line interface provide an input history or even the ability to use the cursor keys to change the input. The
prompt program wraps any program, intercepting stdin, stdout and stderr and providing the user with such editing facilities.
SEE ALSO modglue(1). ptywrap(1).
See the web page at http://www.aei.mpg.de/~peekas/modglue/ for more information.
AUTHORS
Kasper Peeters <kasper.peeters@aei.mpg.de>
Jul 12, 2008 PROMPT(1)
Check Out this Related Man Page
enhance(1) User Commands enhance(1)NAME
enhance - enhanced command-line editing facilities
SYNOPSIS
enhance command [argument]...
DESCRIPTION
The enhance program provides enhanced command-line editing facilities to users of third party applications, to which one doesn't have any
source code. It does this by placing a pseudo-terminal between the application and the real terminal. It uses the tecla command-line edit-
ing library to read input from the real terminal, then forwards each just completed input line to the application via the pseudo-terminal.
All output from the application is forwarded back unchanged to the real terminal.
Whenever the application stops generating output for more than a tenth of a second, the enhance program treats the latest incomplete output
line as the prompt, and re-displays any incompleted input line that the user has typed after it. The small delay, which is imperceptible to
the user, isn't necessary for correct operation of the program. It is just an optimization, designed to stop the input line from being re-
displayed so often that it slows down output.
The user-level command-line editing facilities provided by the Tecla library are documented in the tecla(5) man page
DEFICIENCIES
The one major problem that hasn't been solved yet, is how to deal with applications that change whether typed input is echo'd by their con-
trolling terminal. For example, programs that ask for a password, such as ftp and telnet, temporarily tell their controlling terminal not
to echo what the user types. Since this request goes to the application side of the pseudo terminal, the enhance program has no way of
knowing that this has happened, and continues to echo typed input to its controlling terminal, while the user types their password.
Furthermore, before executing the host application, the enhance program initially sets the pseudo terminal to noecho mode, so that every-
thing that it sends to the program doesn't get redundantly echoed. If a program that switches to noecho mode explicitly restores echoing
afterwards, rather than restoring the terminal modes that were previously in force, then subsequently, every time that you enter a new
input line, a duplicate copy will be displayed on the next line.
FILES
/usr/lib/libtecla.so tecla library
~/.teclarc tecla personal customization file.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO libtecla(3LIB), attributes(5), tecla(5)SunOS 5.11 18 May 2004 enhance(1)
I don't want SunOS 5.8 to appear when someone logs into my machine... how do I go about changing the banner?
I was thumbing through my unix books and I haven't found anything... I'm probably looking under the wrong topic...
anyways... any help would be greatly appreciated. (20 Replies)
Hello,
I m trying to execute a UNIX task from windows, I am copying few csv files from UNIX platform to my windows using a bat file like
the txt file is as follows :
open 172.21.13.239
root
root
lcd C:\Documents and Settings\aparna_sharma\Desktop\Trunk_Analysis
cd /opt/Trunk_Analysis/... (24 Replies)
Hi
I have a question that after trying tirelessly I cant solve. I'm not great wth UNIX and wonder if anyone could help. I have to create a shell program using functions that prompts for a user ID. I must then verify that the user Id corresponds to an account on the system. If a legal user Id is... (16 Replies)
I hope someone can shed any light on this mystery.
I am trying to run the following command:
su userID -c
remsh server -l userid -n "awk -F^ '\$4 == \"SMITH\"' /tmp/infromational/version74b/LIVE/TEMPORARY/ABCfiles/HLC_Database_File.bat|head -1" > /tmp/variant/45BV32/var/store13.logfnd
I... (15 Replies)
Hi all,
I have just replaced the HDD on a Ultra 5 Spark machine, now I need to reinstall Solaris 9.
The problem is: how do I get to the OK prompt without a Sun keyboard in order to boot from CD?
At moment when I power on the machine I get the following error:
Timeout Waiting for ARP/RARP... (13 Replies)
Server need to have the OS reinstalled (5.10 SPARC) and I cannot get it to the OK prompt. I also do not have the ALOM password and I've tried several different methods to zero out the NVRAM but to no avail. There is no ALOM battery that I can pull. I'm connecting via Cutecom (like minicom) and... (18 Replies)
Hello,
I work on Windows and I use Putty to access a remote UNIX server.
I am trying to build a shell script that will have as main task to open the
Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Is there a way I can add color to my prompts when I am navigating in Solaris 5.10? I have figured out how to add my alias's to the .profile file but adding color to just my prompts and not the output would be awesome. :wall: (15 Replies)
Hello All,
I would like to display the current time in prompt.
I tried using following command:
export PS1="$(date +%k:%M:%S) $ "
but it gave me a fixed time in prompt whereas my objective is to get the current time everytime.
$ export PS1="$(date +%k:%M:%S) $ "
17:42:42 $
17:42:42 $... (32 Replies)
There are two servers :
1. Site
2. Testing
from site server i want to connect testing server with ssh password less authentication.
i generated public and private keys with ssh-keygen -t rsa on site server.
cat id_rsa >> authorized_keys
cat id_rsa.pub >> authorized_keys
i... (15 Replies)
Hi All
I have a script that moves files from one dir to another dir based on date, but I would like to change it in a way that whoever is going to run to enter the dates in which files will be removed. This is my script:
#!/bin/sh
touch -mt 201302250000 /tmp/ref3
touch -mt 201302282359... (14 Replies)
Need assistance in changing prompt .
Trying to change prompt in csh,tcsh shell . Below are the commands i tried in .cshrc and sourcing this files.
set prompt = "$user@`uname -n` : ${cwd}> "
#above commands works for username and hostname but cwd doesnt change
directories
set... (16 Replies)
I am having a problem when booting my Sun V445 machine with Solaris 10 installed on it. Machine hangs at boot at following step :
0>Copyright 2007 Sun Microsystems, Inc. All rights reserved
0>OBP->POST Call with %o0=00000800.01014000.
0>Diag level set to MAX.
0>Verbosity level set to... (21 Replies)
Hi, I need help changing PS1 in Solaris. I tried this:
MYPROMPT="> "
PS1=$LOGNAME@$HOSTNAME:${PWD}$MYPROMPT (NOT SURE WHY IT'S HIGHLIGHTED HERE)
export PS1
My problem is that $PWD is not working, when I get the prompt and I change directories, the prompt is not displaying the current... (17 Replies)