[SOLVED] Long comand line input

Hello. I have problem with my gnome-terminal. When the command line is too long, it rolls to the same row instead of the next one.
Here you can see it if my explanation isn't clear enough:
I don't remember since when I have this problem, but I have modified my .bashrc file some time ago. Maybe this is the reason. Its content:
# Check for an interactive session
[ -z "$PS1" ] && return
complete -cf sudo
alias sudo="sudo -E"
alias ls='ls --color=auto'
PS1="\e[1;34m\u@\h \W> \e[m"
I would appreciate any hint how to fix it
Last edited by Fazir (2009-11-05 17:03:18)

brisbin33 wrote:dude, read my first post.
You are the man! So so sorry, but my english is very very poor, but with a little effort, now it worked.
PS1='\[\e[0;36m\]::\[\e[1;33m\]\u:\[\e[0;36m\]\w \[\e[1;33m\]\$ \[\e[0;37m\]'
Thanks again

Similar Messages

  • Bash: wrapping long command line [SOLVED]

    I'm trying to configure my bash to wrap long command lines.  I am looking for a behaviour similar to tcsh where, at the border of the window,  the command is continued on the next line.  In bash, the command continues at the begining of the same lines wich is messy.  I tried using
    set horizontal-scroll-mode on
    in my ~/.inputrc but the continuation doesn't start at the windows border. I can post screenshots if that would help.
    Thanks.

    putting the line in .bashrc have no effect.
    Here is my .bashrc
    export EDITOR=emacs
    export PAGER=less
    export LESS="-f -r"
    export BROWSER=firefox
    PS1='[33[01;34m]#[33[00m] 33[01;31m]u@H[33[00m]33[01;39m] w $33[00m] '
    # create an xauth key for root user
    umask 377
    /usr/X11R6/bin/xauth extract /tmp/user.xauth $DISPLAY
    umask 022
    #set horizontal-scroll-mode on
    source ~/.aliases
    my .bash_profile
    . $HOME/.bashrc
    my .inputrc
    "e[A": history-search-backward
    "e[B": history-search-forward
    set show-all-if-ambiguous on
    set page-completions off
    set completion-query-items 10000
    set horizontal-scroll-mode on
    The screenshots:
    With tsch (what I'm looking for)
    With set horizontal-scroll-mode off:
    If I continue to press the 'a' key, it overwrite the whole line and wraps at the window border.
    With set horizontal-scroll-mode on:
    It wraps 2 inches before reaching the window border.
    [/img]

  • Installed Camtasia which wanted Soundflower and now line-input doesn't work

    I installed the Camtasia demo which asked to install Soundflower to get the audio recording working, then I went to skype and my mic/headset (attached to the line-input) no longer worked. I've tried attaching different headsets to the same input, visiting System Preferences / Sound and tapping the mic, but nothing seems to fix it, and I haven't installed anything else, so it has to be Soundflower doing something to affect the line-input.
    Has anyone else noticed this? Is there any easy fix?

    Thanks, I've tried that but they haven't responded yet. I wondered if anyone on the apple forums had seen a similar problem...

  • 1DC- Sound Recording via Line input woes

    Have the latest firmware update on my 1DC. There are 3 issues I am hoping someone can help with
    #1 I assume you must set Sound recording to 'Line input' and NOT manual, but if I set the Rec level, whenever the camera is powered off, either automatically or manually, this Rec level is ALWAYS reset to zero. Also, the moment recording is startted, even though audio input levels are set correctly, no audio is recorded. This seems like a firmware bug to me. This does NOT happen when set to manual. Anyone know of a workaround?
    When using Manual and plugging in an external audio source I assume this signal will override the audio from the camera's internal mic.
    If this is correct and there are no issues when using 'Manual', then what is the difference between 'Manual' and "Line input'??
    #2 When setting Sound input to Manual, the VU meters are visible, but NOT when set to Line input. Why?
    #3 Can anyone recommend a specific connector to go from line out on a Zoom H6 to Mic in on the 1DC?
    Solved!
    Go to Solution.

    No. Apparently a buggy firmware release. My understanding is that there is another release planned soon. Hopefully with several new (and working) features in addition to the line input.
    Using Manual with a -25dB cable for now.

  • Audigy 2 ZS: Keeping line input from playing on speak

    I recently installed an Audigy 2 ZS in a Win2k machine. In the mixer, I've selected "Analog mix" for recording. So "What-U-Hear" should be off, right? And I have disabled "Monitor during recording." So, while recording, I don't hear what is coming in the line input. But if I turn recording off, suddenly what's coming into Line-In blasts out the speakers. Is there a way to permanently disable passing Line-Input to the speakers when I'm not recording or even running a recording program?
    Bob

    The mixer device list for the Audigy 2 ZS shows a separate Line-in for record and play. So it appears that the ability to keep Line-In from playing on speakers is there. However, unfortunately the Creative Mixer implements this as a record option and an option to "Do not monitor while recording." With this option checked, Line-In isn't passed through to the speakers but only during recording. At other times you'll hear what is coming into the Line-in. By comparison, the Audigy 2 LS has an option to "Do not monitor," which blocks Line-in pass-through under all conditions (unless an api enables it). The Line-In pass-through was a particular problem for me for a C++ program I've written. So I solved the problem by selecting "Do not monitor while recording," muting the global volume, and un-muting the global volume with a call to the mixer functions when I turn on recording from within my program. This prevents pass-through even when my program isn't running, which was important for my particular application. Unfortunately, this isn't a viable option for someone using an off-the-shelf recorder-player. Other mixers might implement this differently.
    BigZed wrote:
    Sorry to bump this but...
    I happen to have a very similar proble to Katman's
    W2k machine, recording from the line input, i got
    either no sound to record (if line input is not
    checked in the mixer - both windows' or creative's)
    or i got sound to record AND this sound also
    goes to the line out (when i check the line input
    in the mixer), which defies my purposes.
    Line in was always selected as input in the recording
    panel.
    I tried to uncheck the "record without monitoring"
    option but it does absolutely nothing to me.
    I have updated the drivers just a few weeks ago.
    Hints?

  • Realtek HD Audio Manager - no Line input

    SR5710Y desktop
    Realtek HD Audio Driver 6.0.1.5910
    Windows 7 Home Premium
    Microphone input to front or rear panel jacks works and appears in Realtek Audio Manager display and in Windows Sound Recorder.
    Line input to rear jack (no Line front jack) does not appear in Realtek display nor in Sound Recorder, but Realtek senses a connection being made to the Line input as it is highlighted in the ANALOG section of the display, and a flag message also appears in Windows indicating that a device has been plugged in.
    Also, AUDACITY program detects neither microphone nor line input device.

    Hi:
    Did you try the latest HD audio driver directly from the RealTek website?  That has solved various issues.
    If you haven't here it is.  Accept the agreement, download and install the first driver on the list.
    http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownT...
    Paul

  • [Solved]Prompt - comand lenght

    In these days i played with the .bashrc file to change the prompt in terminals.
    Now when i type a long comand, after some character, it doesn't continue in a new line but start again in the same line overwriting the prompt.
    How can i fix this ?
    Last edited by TheCreeL (2011-08-23 17:11:15)

    Make sure you put \[ and \] around strings of formatting characters in PS1 so bash knows they don't count towards how long the prompt actually is on the screen.
    Also, you should turn on the "checkwinsize" option or bash won't notice when you resize the window it's in (setopt -s checkwinsize).
    I still see this problem some of the time, but it got much better once I fixed those two things.

  • ProBook 4530s mic input switched to line input

    Hello- Have a ProBook 4530s that needs microphone input reconfigured as a line input. There is no visual information provided when a 3.5 mm cable is attached to mic input/line out, as a friends Dell 1555 provides. Please assist. Also, is the there a way to update this with a GUI ?
    Thanks,
    Johnyik

    Hi Johnyik,
    Your particular product is a commercial unit to get your issue more exposure I would suggest posting it in the commercial forums. You can do this at http://h30499.www3.hp.com/hpeb/
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Calling C from Java. C takes in a command line input

    Hello,
    I have created some basic JNI programs, in which the java file calls the C files. The way I could do it was directly calling the functions in the C files, which I needed. Now I am trying to call a C file from Java, and the C files takes in a command line argument after being compiled.
    Also after compiling the C file, it produces an exe. I cannot change the C file and also want to call it from Java using JNI (as I want to later put all this into a jar and jnlp file and put it on webstart).
    If anyone can help me on how to call the compiled C file and how to send in the input as a command line argument I would greatly appreciate it.
    Thanks
    Nick

    Now I know how to create a C wrapper file and a Java file in JNI format. Does this mean you want to run the exe files by calling the main() method through JNI. Yes you can do that BUT you will need to turn your exe file into a dll and then write a JNI wrapper to act as a bridge between the Java and the dll.Yes. Thats exactly what I want to do. I want to call the C files through JNI. But what I am asking is, how do I send in the input which is originally sent in as stdin? And also what are the steps to follow if I want to call a main method of the C files in the JNI.
    Up till now I have been using JNI to call functions from the initial C files from the C wrapper file. But now I want to call the .exe file by sending it a command line input. Or if you can suggest a better method that would be great.
    You can execute an exe file using ProcessBuilder then there is no need for a JNI wrapper. You must read the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement ALL the recommendations. Failure to do so will cause you much grief.
    You could achieve the same result but using a lot more code and a hell of a lot more effort by invoking the exe executables from JNI code that invokes the 'C' exec() library. Just thinking about that approach makes my eyes water!
    Well if I just use the exec() library I can do it, yes thats ture. But I wasnt sure if I did that, and then put this on Java Web Start, if non PC users can access it or not. If macs, and linux machines can access this even If i use exec, then my problem is solved.
    Thanks
    Nick

  • Comand line JSDK Installation

    I need to automate the installation of JSDK 1.3.1 or higher on a Win 2K box. It needs to be ran directly from the comand line with no other input necissary.
    Is this even possible. Any help would be great.
    Thanks.
    -john

    Yeah, I want the same thing. Any answers?

  • Saving Outlook eMail to a hard drive folder with long subject lines

    I'm using Outlook 2010 on a WIN7 machine. I drag and drop eMails to folders on my desktop quite often and in the past (earlier version
    of Outlook) I would receive a warning that the file did not copy if the subject line was too long. When I drag and drop eMails with long subject lines now there is no visual warning or indication that the operation failed. I am aware of the file name/path
    character count limitation. My issue is the lack of a warning when the operation fails requiring me to have to check the length of the subject line before the operation or double check if the file is present after the operation. Checking after the operation
    is quite exacerbating when you are copying 15 - 20 files at a time. Is there a patch or something that can be done about this?

    Hi,
    We can also consider to get support about macro from MSDN forum:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=outlookdev
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • HT1208 After updating my iphone 5C, the screen was black but had the itune logo in the center, a white arrow pointing to the logo, and what seemed like a white lock, but it had a long white line leading to the bottom of phone.  Phone is now frozen.  What

    After adding the latest update to my 5c iphone, the screen was black, with the itune logo in the center, a white arrow below it point to the logo, and below that, what seemed to be a white lock, but it had a long white line reaching the bottom of the screen.  I can't get the phone to start.  The white apple appears and then I get the same logo, arrow, etc.  What can I do to fix this?  Thanks for any assistance.

    i m also put passcode in my iphone...but i dont know that how i know that my passcode is crack by someone???and same as police is not interested to find out it..
    i want ma iphone backkk...........

  • Line input question

    I would like to be able to use my desktop speakers to listen to a satelitte radio receiver using the Mac Pro's line input and volume controls but I can not find a way to nake this audio "pass through" from the line input to the line output.
    I know that there is analog audio present at the mini plug I am feeding the line input with because I can select it as my recording source in other applications (garage band, peak, etc.). Obviously, I would prefer not to have to run one of those applications to monitor the audio.
    Any suggestions are appreciated.
    Mac Pro   Mac OS X (10.4.7)   Macbook Pro

    Thanks for your input, but I was hoping to find a solution that did not involve more hardware. I would really be quiet happy if the audio was just able to pass thru.
    Mac Pro Mac OS X (10.4.7) Macbook Pro

  • Run unit test in comand line

    Hello everybody,
    I try to run existing unit test in comand line:
    ututil -run -test -name ROW_COUNT -repo unit_test_repos -db finch
    where
    ROW_COUNT - simple unit test
    unit_test_repos - unit test repository, which i create using tutorial (http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/sqldev/r30/sqldev_unit_test/sqldev_unit_test_otn.htm)
    finch - owner of procedure, which i try to test
    after execution this command i receive this message:
    C:\sqldeveloper\sqldeveloper\bin>ututil -run -test -name ROW_COUNT -repo unit_test_repos -db finch
    SEVERE Error: No Repository was found on the selected connection, you need to create a repository. - oracle.dbtools.unit_test.UtRepositoryManager.openConnectionWithChecks(UtRepositoryManager.java:214)
    Unable to open repositoryafter that i try to execute command with another parametres (instead of finch i use sys-user), but receive equal result.
    what`s wrong?
    in Help document i find next:
    The following example runs a unit test named AWARD_BONUS in a Windows environment where SQL Developer is installed under Program Files. (Note that test and suite names are case sensitive for the command-line interface.) This example uses the repository connection for user unit_test_repos and runs the test as user fred.
    cd c:\Program Files\sqldeveloper\sqldeveloper\bin
    ututil -run -test -name AWARD_BONUS -repo unit_test_repos -db fred"
    fred is connection which exist in oracle sql developer interface? what kind of privilegies should fred has?
    In oracle sql deevloper exist several connection to another servers. i`t can be reason of error?
    I trying in oracle sql developer interface select finch as manager of unit tests (tools - unit_test - manage_users to the next i select in dropdown list "finch" and granted needed privilegies for him) , but result was`t changed.
    thanks.

    It looks like you need to spark up SQL Developer, create a repository connection and assign that in the Unit Test Menu. It will walk you through creating the repository and then you can refer to that from the command line.

  • My cursor has long vertical line at times

    My cursor has long vertical lines at times. When I hover over a link, the cursor doesnt' change to a hand

    I don't know if this applies to LCDs, but the iMac G3 and eMac had "geometry settings" in the display preferences. If you messed up the settings, things like lines on the bottom and skewed images could happen.
    I wonder if the factory geometry settings are off on your iMac? There is no way to set these with System Prefs.
    I found someone asking about it here: https://discussions.apple.com/thread/3019584?start=0&tstart=0

Maybe you are looking for

  • Bit Map Join Index Creation

    Hi, I have a db of version 10.2.0.3 on a Unix box. This is used for DW. I have a dbms job which is basically creates 6 bit map join indexes between two tables parallelly. One of the table (Fact table) has almost 170 million data and the other one (Di

  • I would like to update to mac os x 10.6. Would it affect info on harddisk

    To whom it may concern, I have a MacBook Pro and the current software version is Mac OS X Version 10.5.8 I am looking to update software with Snow Leopard Mac OS X Version 10.6 and wondered will this affect any content on the current system such as M

  • F-04 Profit center blocked

    HI All, I am trying to clear all opens items in F-04. but in the end i am getting "profit center is blocked for the XXX/1234567". Please assist me how to pass this entry. ASAP

  • How to create a all virtual machines collection.

    I need to create a collection of all virtual machines. There are only hyper-v VMs. I thought it would be an Attribute of the System Resource attribute class, but I don't see anything there. TechNetX

  • Exception to validate input !!!!

    heello .. i have a question about exceptions .. i want to make 2 exceptions .. to validate the input value that the user entered in a JTextField .. the first one .. to make sure that the entered value is an INTEGER Between [0-99] .. the second one ..