but, when i type more than the width of the window, it wraps around the window and overwrites any text.
And different ones don't do that. Anyone tell what the problem is?
---------- Post updated at 10:27 PM ---------- Previous update was at 09:06 PM ----------
I figured it out. I was missing one part where you declare the color. I also removed the \[\e[m\]'s because those werent actually doing anything? the correct code is.:
it needed \[ before every color and stuff at the end. you could lock the topic if you want. its solved.
in csh I was using:
set prompt=""$HOSTNAME".tk.\!> "
to customize the look of my prompt. I have seen the light after reading the perils of csh scripting and wish to switch to bash. How do I customize my bash prompt??? I've tried many variation of the above w/no success, and searching this... (2 Replies)
I'm trying to use unison from bash on windows with cygwin. I don't know if this is a cygwin question, bash question or unison question. Since I always get reprimanded by the cygwin mailing list for assuming it is a cygwin problem, I'll assume it is a bash question.
The following commands work... (7 Replies)
It looks like,
user@hostname:/auto/home3/user$
Desired,
user@hostname$
I added following line in .bashrc, but still its same.
export PS1=" $ "
Please help me :confused: (13 Replies)
Hi,
Does anyone know any way of making bash prompt extended with conditional content?
Example:
export PS1="] && echo '#' || echo '\$'" # This won't work - prompt is not executed
# export PS1="\$" # This is an existing but also working equivalent
I would like to use more complex... (8 Replies)
This is an instance of "if it's not one thing, it's another."
I recently fell victim to my own stupidity in trashing, by accident, my long-running and very highly-customized .bash_profile and .bashrc files for Cygwin & Cygwin/X. I had backups from a previous "go" with this, and decided to use... (0 Replies)
I am working with a script to simplyfy some operations where I work, but one of the programs needs me to enter a password.
It will as me "Please enter the administrator password:"
Is there a way to make a bash script to automatically answer the question with the needed password?
I am looking... (3 Replies)
I remember there was a gnome only command that we could insert in a bash script to mount a Linux disk that would pop up a little window to grab a password.
I know there are bash commands to read a string but they are not GUIs and they echo the characters typed. This gnome command popped up a... (1 Reply)
Hi,
I'm trying to run a program from the bash prompt and I don't understand why it is returning with an error.
Dig is my C program, and it takes in parameters J4, detect, 3 and 0182F98E
var1="cygdrive/c/2i/test fixture/software/mccdaqtest/debug/Dig J4 detect 3 0182F98E"
when I do
... (6 Replies)
Hello Guys,
I have facing problem with linux shell prompt .Am expecting my Bash prompt to be like below
but its showing like
~]$ ot@Servername and while typing the commands the prompt looks like below:
~]$ echo $PS1
$
~]$ ot@ServernameChecked the .bash_profile and also changed... (9 Replies)
I use the .bashrc file from this thread.
Direct link to the archive containing the ultimate bashrc
I am trying to use autojump, but it will not autoload the directories to the autojump list as the custom prompt is not compatible.
Here is the thread on the issue from other users.
apt -... (2 Replies)
Discussion started by: genehunter
2 Replies
LEARN ABOUT DEBIAN
img-window
img-window(3tk)img-window(3tk)NAME
img-window - Img, Tk Windows (window)
SYNOPSIS
package require Tk
package require img::window ?1.3?
image create photo ?name? ?options?
DESCRIPTION
The package img::window is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::window.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image. More specifically img::window
extends Tk's photo image type.
The name of the new format handler is window.
This handler does not provide additional configuration options. This handler is special. Instead of reading or writing image data from a
file or string it allows the embedding of a Tk widget into the photo image. In other words, it takes a snapshot of the contents of a Tk
window.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in window format (option -data) is detected automatically. Image data is considered to be in the window format if the
value given to option -data is the name of an existing Tk window.
Note that the standard option -file is not supported by this handler.
[2] The format name window is recognized by the option -format.
SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-
window, img-xbm, img-xpm
KEYWORDS
image handling, tk, window
COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com>
Img 1.3 img-window(3tk)