[SOLVED] Single-line input on terminal issue

On my terminal application, if a command I'm typing is too long, it returns to the position 0 of the same line to continue the command.  How can I make it instead go to the next line to continue typing?
I am using Bash.
Last edited by corruptz0r (2011-07-05 06:19:12)

lolilolicon wrote:What is your PS1? If you have any escape sequencies in PS1, be sure to wrap them in \[ and \].
See the bash man page, PROMPTING section.
Thanks, that fixed it!
Last edited by corruptz0r (2011-07-05 06:18:56)

Similar Messages

  • Can the Terminal add a user(with all options) on a single line?

    Howdy All,
    Can the Mac Terminal add a user, with all options desired, on a single line?    If so, can I get an example of this single terminal line to work from?
    Thanks

    Thanks Drew!   You have some great thoughts there. Perhaps I should provide a clearer environment of each high school(4). All classrooms have a lock down Windows environment. (There are no Macs any where in any classrooms.) The mini-tower will be the only Mac on each high school campus. we're in Dell country. The desktops are locked in such a way that only the ghosted/installed software on each hard drive works and no other software can be installed. USB sticks can't run any exe, jar, or other executable file. Even the other drives on the network can't run them. This has been setup to prevent students from bringing games into the environment and running them. Only the single classroom in each high school, where Web Tech is taught, has a ftp tool installed. Students cannot bring and use their own laptops either. So there really isn't any stray ftp activity happening. You cannot "ftp" out of the network! And there is only the one Mac available per campus.  All this makes it certainly easier to maintain for sure. I am the only user in the school district they let run a personal laptop...mine has Ubuntu (tweaked).  My knowledge of Linux has led them to assign this project to me. They are MS based entirely and so is their knowledge base.
    I've got to teach the other 4 teachers how to manage the mini-tower.  Basically it is this:
         Start and stop Apache2,
         Start and stop vsftp,
         Add ftp users(students will only have directory:           /Library/Server/Web/Data/Sites/Default/studentlastname.firstname  )  Students will not log on to the min-   tower directly as any normal user would, but only through ftp. (I.E. no /home directory) ,
         Remove/delete students as needed
         (I'll pre-install cgi-bin scripts on these to keep it simpler on the other teachers and myself.)
    With this in mind, you can see why a basic script or single command line to install these students would be great! I want to keep it simple to avoid mistakes the teachers might make adding users. Once I understand adding a user (in a terminal) better on a Mac, I may write a script to make it happen for them.
    I'd also like to understand removing/deleting a student/user better to insure everything is gone when executed.
    I hope this clear things up. Any help is much appreciated.    THANKS!!!

  • [PART SOLVED] Random j, k characters appearing on lines. A vim issue?

    Hi There,
    I recently noticed that when scrolling around a file using the keys j and k in normal mode that random j and k characters appear at the end of lines. Initially I thought this was a terminal issue so I switched terminals, no luck. I removed all erroneous crap from .vim, no luck. I have googled around a bit, and it appears this is a known issue with jslint, but this is occuring with no plugins. Ctrl-l removes the random characters, and they don't appear to be getting written to the file, but it is annoying non the less.
    Any thoughts?
    Thanks.
    Last edited by ZombieX (2012-05-25 12:36:50)

    Thanks for the reply. In my case, it appears more frequent when you scroll back and forth over pages using j and k. I haven't noticed anything with the 'O' command but I will keep an I out. I haven't been able to find the root cause of this, nor have I found any 'real' fixes so I either deal with it or use emacs with VIM bindings. I'll consider this closed.

  • Line input problem with Logic X, No issues Logic Pro

    I use the line input on my 2011 Imac to record audio from my piano keyboard. When using LOGIC X there is no sound coming through the speakers, but with Logic Pro 9 I have no issues. I tested with new projects, ect but was unable to get to work.
    In both Logic Pro and Logic X I have made an audio track and made sure input monitoring is on. I made sure volume was sufficient. I have tried to fix this to no avail and was thinking about bringing to apple store, but this appreasrs to be some sort of logic x bug (or I am missing something). Any help is appreciated as this is very frustrating.
    Brian

    I think you're missing something.
    http://help.apple.com/logicpro/mac/10/#lgcpbb81aca5
    You have to configure each program top to bottom, go to the above link and make sure all your settings are correct. (the won't necessarily match the pic)
    Look at your Logic 9 settings  Preferences/Audio  and then set up Logic X the same way.

  • How do I delete a single line in a WAD input layout?

    Hello to all,
    I've created a standard delete function and I don't know how to "data bind" it to a single line of my web layout in order to only delete the selected line.
    Can anyone please help and explain how to do it?
    Thanks in advance for your help.
    Best regards,
    Francesco

    Hi Francesco,
    have never done this before using a delete function but for similar planning requirements. Just give it a try with this procedure:
    At WAD you can set the behavior for each analysis item individually. If you set the "row selection" (analysis item, properties, web items parameters) for the rows to "single" or "multiple" the user can select rows (probably this is nothing new to you).
    Just imagine you have the variable "product" in the row of your query. In this case just create a variable for this characteristic. In doing so you can use the variable within your delete function or within the planning filter belonging to this function for the characteristic "product". The last step is to "link" the characteritic value(s) of the selected rows  to the planning function/filter. If you implement the planning fuction or the planning sequence in WAD you can do a data binding for the variable(s) as follows:
    Variable: (name of your variable)
    Variable type: Selection_binding_type
    Binding type: item_characteristic
    Web Item: (technical name of your selectable analysis item)
    characteristic: (name of your characteristic)
    Please keep us updated if it works, for questions just let us know.
    Brgds,
    Marcel

  • Single Line Report issues

    Hi, folks.
    I have a table of employees and a table of certifications. An employee may have 0-15 certifications (and dates completed).
    I'm trying to generate a single line report like this:
    NAME - CPR DATE - FIRST AID DATE - Etc
    I've made an evaluation formula:
    If {Cert_Table.Type} = "CPR" then {Cert_Table.Date}
    This works brilliantly...as long as CPR is the first record that matches the employee ID. If it is the second, it leaves the field erroneously blank.
    I know the ideal way to show this would be a list, but the boss wants a single-line representation of the key certification dates.
    How do I get crystal to report back the CPR date regardless of which order it appears?
    Thanks in advance!

    Hi, 
    There are a couple of ways you can do this.  Following your train of thought, you can build the string like: 
    Create a Group on Employee. 
    In the Group Header create a formula like: 
    WhilePrintingRecords;
    StringVar Certifications := "";
    In the Detail section create a formula like: 
    WhilePrintingRecords;
    StringVar Certifications;
    Certifications := Certifications += {Cert_Table.Date} & " - ";
    In this formula, if your Date field is an actual date type then you will need to use the ToString function to convert it to a string or you will get an error. 
    In the Group Footer create a final formula like: 
    WhilePrintingRecords;
    StringVar Certifications;
    The first two formulas you can format to Suppress so you don't see them. 
    Good luck,
    Brian

  • HOW TO CREATE 2 PARAMETER IN SINGLE LINE.

    Please do NOT POST IN ALL CAPITALS
    HI,
    HOW TO CREATE TWO PARAMETERS IN A SINGLE LINE AND THE INPUT HAS TO BE DISPLAYED IT IN A POP UP BOX. THIS IS MY TRAINING TASK HELP ME TO SOLVE IT.
    REGARDS,
    SREERAM
    Edited by: Matt on Mar 19, 2009 1:26 PM

    hi,
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-001.
    PARAMETERS:
    p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN COMMENT 30(10) text-002.
    Parameter p_connid TYPE spfli-connid.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    Radio buttons in a single line.
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(10) text-001.
    PARAMETERS p_rad RADIOBUTTON GROUP grp.
    SELECTION-SCREEN COMMENT 30(10) text-002.
    Parameter p_rad1 RADIOBUTTON GROUP grp.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1
    Thanks
    Sharath

  • Sharepoint 2013, Document Library: Sharepoint is changing data in a single line of text column to ISO8601 after modifying other columns

    Hello there,
    basically, as the title says: We have a Document Library on a Sharepoint 2013. Attached to every document are multiple columns, the type for every column is 'Single line of text'.
    One column is called 'billing date' and has suitable data in it, e.g. 01.01.2015, 26.02.2015, 29.03.2015 an so on.
    Sometimes when someone is editing an other column of the same document the data in 'billing date' changes from 01.01.2015 to 2015-01-01T00:00:00Z for that document, seemingly randomly.
    Is there any way to configure or prevent this?
    Thanks in advance and kind regards,
    Michael

    Hi,
    From your description, my understanding is that SharePoint changes the format of date in single line.
    It is very strange issue. I try to reproduce your issue in my environment, but everything is OK.
    To solve your issue, I need to collect some information, please confirm these points below:
    When will the format of date change? Does it change immediately when you edit the document or after clicking save button?
    Does the issue occur in this document library or each one in your environment?
    Do you have some special configurations for this document library?
    In addition, could you provide a screenshot as below?
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Measuring of Text with Multiple Fonts in One Single Line

    I am following a request to write C++ code for a label that contains several text elements in one single line, varying by font, size, color.... Ok, that can be done easily in GDI+ by measuring each element's width and then execute a DrawString
    for each of the text elements starting at its calculated position.
    So far, I failed miserably.
    The horizontal text positions did not appear to be correct. I reverted now to very simple text width measuring tests where the results are still puzzling.
    Test 1 (GDI+): Use of MeasureString
    With the same font, the width of the string "MM" does not match the double with of the string "M". This cannot be explained with eventual rounding problems.
    Test 2 (GDI+): Use of MeasureCharacterRanges
    Used the same font as for the first test. The width of "MM" is now exactly double of the width of "M". But: The width of the "M" ist lightyears away from the measurement result in the first test.
    Test 3 (GDI): Use of GetCharABCWidthsFloat
    Attempted to create a GDI font as close as possible to the GDI+ font in the previous tests. Unfortunately, this third test shows results which do not match the previous results at all.
    I am appending the full example here; the results I found during the debug session have been added as comments:
    void ApplWindow_TextDrawTest(HDC hDC)
    Gdiplus::Graphics *G = new Gdiplus::Graphics(hDC);
    G->SetTextRenderingHint(TextRenderingHint::TextRenderingHintClearTypeGridFit);
    Gdiplus::StringFormat MyFormat;
    MyFormat.SetAlignment(Gdiplus::StringAlignment::StringAlignmentNear);
    MyFormat.SetFormatFlags(Gdiplus::StringFormatFlags::StringFormatFlagsNoWrap);
    Gdiplus::Font TextFont(L"Calibri", 36, Gdiplus::FontStyle::FontStyleBold, Gdiplus::Unit::UnitPixel);
    const wchar_t *Text1M = L"M";
    Gdiplus::PointF TextOrigin1M(0, 0);
    Gdiplus::RectF TextBounds1M;
    const wchar_t *Text2M = L"MM";
    Gdiplus::PointF TextOrigin2M(0, 50);
    Gdiplus::RectF TextBounds2M;
    //--- Test #1: using MeasureString ----------
    G->MeasureString(Text1M, (INT)wcslen(Text1M), &TextFont, TextOrigin1M, &MyFormat, &TextBounds1M);
    G->MeasureString(Text2M, (INT)wcslen(Text2M), &TextFont, TextOrigin2M, &MyFormat, &TextBounds2M);
    //--- Results: Text 1 Width= 44.414 ("M")
    //--- Text 2 Width= 76.828 ("MM")
    //--- Test #2: using MeasureCharacterRanges ----------
    Gdiplus::Status RCode;
    Gdiplus::RectF LayoutRect(0, 0, 1000, 100);
    Gdiplus::Region RegionsList[3];
    Gdiplus::CharacterRange CRanges[3];
    CRanges[0].First = 0; CRanges[0].Length = 1;
    CRanges[1].First = 1; CRanges[1].Length = 1;
    CRanges[2].First = 0; CRanges[2].Length = 2;
    MyFormat.SetMeasurableCharacterRanges(3, CRanges);
    G->MeasureCharacterRanges(Text2M, (INT)wcslen(Text2M), &TextFont, LayoutRect, &MyFormat, 3, RegionsList);
    RCode = RegionsList[0].GetBounds(&TextBounds1M, G); // Result: Text 1 Width = 32.000 ("M")
    RCode = RegionsList[1].GetBounds(&TextBounds1M, G); // Result: Text 1 Width = 32.000 ("M"; the second char)
    RCode = RegionsList[2].GetBounds(&TextBounds2M, G); // Result: Text 2 Width = 64.000 ("MM")
    //--- Test #3: using the good old GDI ----------
    int MapModeResult = SetMapMode(hDC, MM_TEXT); // MM_TEXT is equivalent to Unit::UnitPixel?
    HFONT TextFont3 = CreateFont(36, 0, 0, 0, FW_BOLD, false, false, false, ANSI_CHARSET, OUT_TT_ONLY_PRECIS, CLIP_DEFAULT_PRECIS, CLEARTYPE_QUALITY, VARIABLE_PITCH | FF_DONTCARE, L"Calibri");
    HGDIOBJ PrevFont = SelectObject(hDC, TextFont3);
    ABCFLOAT ABCCharData;
    BOOL RFlg = GetCharABCWidthsFloat(hDC, (UINT)'M', (UINT)'M', &ABCCharData); // Results: abcfA = 2.000; abcfB = 22.000; abcfC = 2.000
    //--- End of Test ---
    delete G;
    Does anybody have an idea why I get so different results?
    Thanks in advance.

    This is a development question and should be directed to a forum that assists in coding. The forum you posted to is for Windows 7 related questions.
    Sorry I cannot help you
    Don't forget to mark the post that solved your issue as "Answered." By marking the Answer you are enabling users with similar issues to find what helped you. Lewis Renwick - IT Professional

  • XML output - all tags in Single line?

    Hi,
    Scenario: HTTP----> XI --- > File(XML)/Proxy(abap).
    Output XML file has the data in single line(all XML tags).
    Now, issue with abap proxy which reads this XML file for sending attachment in email has length constraint(can not read if line length exceeds 255 chars).
    Is there any option in XI, to print each pair of tags in each line(using carriage return or line feed?)
    Please help.

    Mallik,
    I do not think that this can be achieved in XML to XML (unless you can create a specific module and add to the module tab)
    But if you create say a CSV or TXT file and use the <b>Content Conversion Parameters</b> option
    Here you can specify the fieldSeparator to be 'nl'
    <b>Input</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <record>
    <field1>f1</field1>
    <field2>f2</field2>
    <field3>f3</field3>
    </record>
    <b>Output</b>
    f1
    f2
    f3
    Here you have retained your data and each field is separated by a new line.  Unfortunatley with this method you lose your XML tags
    Regards,
    Mike

  • [partially solved] firefox and input boxes

    I've updated firefox to 3.5 recently, after update, I noticed that input boxes look too long.
    here's a screenshot of www.archlinux.org (pay attention to package search area)
    and here's a screenshot from google.
    I dont have any problems with midori, it renders the page fine:
    I tried changing firefox theme and gtk theme but it didnt help.
    So, any ideas about this problem?
    solved
    well, i've solved my problem by changing main font from Lucida Grande to another font.
    Last edited by ras0ir (2009-07-14 08:43:05)

    I had exactly the same problem but i didn't want to change my system font because i really like the elegance of 'Lucida Grande'.
    I tried a bit tweaking Firefox with creating userChrome.css but it didn't work for me.
    Then i installed the stylish addon and created a custom userstyle:
    * Bugfix for the firefox input fields when using 'Lucida grande' as system font
    @namespace url(http://www.w3.org/1999/xhtml);
    input {
    font-family: sans-serif !important;
    With this workaround all input fields are at the right size again. Of course 'sans-serif' shouldn't again point to 'Lucida Grande' For me it's 'DejaVu Sans'.
    Could someone help me to realize this workaround with a userChrome.css so i don't need the stylish extension anymore?
    Also this tweak applies to all 'input' fields - e.g. to buttons, too. How can i specifiy, that it should only target single-line text inputs?
    cheers
    Fat

  • 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.

  • 3 buttons and 2 select lists in a single line

    Hi,
    I have an application which has 3 region buttons ( say, b_1, b_2, b_3) and 2 selects lists (say, sl_1, sl_2). I want to display all the five buttons and items in a single line in the following order:
    b_1 b_2 sl_1 b_3 sl_2
    I have set Begin on new line = no
    and Begin on new field = no, for both the two select lists.
    But it does not seem to work.
    Do anyone have any idea, how to sort out this issue?
    A quick reply would really be appreciated.
    Regards,
    AM

    Hi Vikas,
    Please have a look into the application at
    http://apex.oracle.com/pls/otn/f?p=34363:1:6206621111100168:::::
    I have created two select lists P1_X and P1_Y. These items are hidden on page load event. When the associated button is clicked the list should appear on the page.
    Written the following code in 'Pre element text' for each of the items:
    P1_X :: <input type="button" value="X" onclick="f_X();" class="t17Button" />
    P1_Y:: <input type="button" value="Y" onclick="f_Y();" class="t17Button" />
    Where, f_X() and f_Y() are displaying the select lists.
    As you can see, the select lists are appearing just below the html buttons, which I want side by side with the buttons.
    Could you please figure out the issue?
    If you want I can share my login details.
    Regards,
    AM

  • How to stop auto from-feed on a dot matrix printer for printing only a single line of data at a frequency of 30 seconds

    Hello friends
    In a particular application, it is required to print a single line of data on a dot matrix printer (continuous sheets) at a frequency of 30 seconds. That is printing is to be carried out line-by-line on the same form without a form feed.
    We are facing a problem of a form feed after printing of each line. Kindly help me to solve this problem of auto form-feed. How to continuously print at a regular interval without from-feeding.
    Shahid Baig

    Is this printer connected to a network?
    You may need to look at the printer manual to see if there is a setting for a form feed.  I remember when we had a dot matrix printer on the network about 12 years ago, there would be a network timeout setting of something like 30 seconds.  So if you didn't continue to send data, the network will end the print job and send the file to the printer which would auto form feed at the end.  Many of our basic programs had to be rewritten because they would do an LPRINT periodically, if you took along time progressing through the inputs, you would easily hit the 30 second timeout.  So all the programs had to be rewritten to save the data to be printed to a file, and only once you execute a print command, it would read the file back in and Lprint it (or a Print#1) to the LPT port.
    Since the printer was on the network, and basic could only print to LPT's, we had to use a net command to capture the LPT1 port and direct it to the network queue.
    I don't remember all the details, but those are the bits and pieces I do remember.  I think the answer to your problem lies in there somewhere.
    Namely:
    1.  Printer setting to auto form feed.
    2.  Network setting that closes print job after timeout period.

  • TSQL XML query Results tab: elements crammed together as single line

    Are the elements in a TSQL "FOR XML..." query rendered by default as a single line (wrapped-around)?(i have a screen shot but i am not allowed to post it here until my acct is 'verified').
    When i run
    SELECT    
       c.CustomerID AS '@CustomerID',
       (SELECT
           oh.SalesOrderID, oh.Status
        FROM
           Sales.SalesOrderHeader oh
        WHERE
           c.CustomerID = oh.CustomerID
        FOR XML PATH('Order'), TYPE) AS Orders
    FROM
       Sales.Customer c
    WHERE
       EXISTS (SELECT * FROM Sales.SalesOrderHeader soh WHERE c.CustomerID = soh.CustomerID)
    FOR XML PATH ('Customer'), ROOT ('Customers')
    this is what i get:
    <Customers><Customer CustomerID="11000"><Orders><Order><SalesOrderID>43793</SalesOrderID><Status>5</Status></Order><Order><SalesOrderID>51522</SalesOrderID><Status>5</Status></Order><Order><SalesOrderID>57418</SalesOrderID><Status>5</Status></Order></Order
    tus>5</Status></Order></Orders></Customer><Customer CustomerID="11008"><Orders><Order><SalesOrderID>43826</SalesOrderID><Status>5</Status></Order><Order><SalesOrderID>51282</SalesOrderID><Status>5</Status></Order><Order><SalesOrderID>53765</SalesOrderID><S
    rderID>
    Why aren't the results with XML elements nicely ordered, one element per line?
        <Customer CustomerID="11000">
            <Orders>
                <Order>
                    <SalesOrderID>43793</SalesOrderID>.....

    Where are you viewing the result? In SQL Management studio the result will be shown as link which when you click will show XML elements ordered nicely
    I've shown some examples here
    http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Force Error message in BADI ME_PROCESS_PO_CUST

    when PO is created, I have to collect the  error message similar to  Standard SAP does for certain condition (based on the quantity entered in the Service line items )  , Please let me know how to do this within the BADI. I’m using post method of  ME

  • Won't detect the router.

    Hi, I am trying to install a WRT54G model router. It goes through the setup and all the lights and everything else is correct but when the software tries to detect the router it always says the is cannot detect it.  I am able to access the router wit

  • List the directory access time

    Hi All I want to sort all directories in a file system,which is not accessed for last 1 year,can anybody help me in this

  • Run parlayx example error

    I want to test Parlay X PresenceConsumer application with OCMS(version 10.1.3.4) reference to parlayxjdeveloper.pdf. I use Oracle JDeveloper 10g Release 3 (10.1.3.4). After successful deploy on OCMS and invoke the URL(http://127.0.0.1:8888/presencede

  • Issues with data returned on application.cfc onRequeststart

    I have a shopping cart that works from main code with VD on IIS. So all the code is places in one directory, and for each store I create a Virtual directory on the IIS so a store link will look like this : www.shoppingcart.com/store/XXXXX when the xx