Menu

#418 "Don't wrap long lines" doesn't work

open
nobody
None
1
2012-08-28
2012-08-27
xtal256
No

Hi,

The "Don't wrap long lines" feature doesn't work for me. Regardless of whether that check box is enabled or not, long lines still wrap at the end of the window.
I'm not sure of the technical limitations, as i know this is just a different front-end to the existing console, but i'd imagine it would be possible to change the buffer size when needed. If not, you should remove the option.

On a related note, to stop long lines from being wrapped on the standard Windows console, i have set the buffer width to 1000. This does mean i have an ugly scroll bar down the bottom, but it does the job (well, for lines <=1000 characters anyway). But in Console2, i am unable to set the column size >200. Is there any reason for this?

Discussion

  • Kirill

    Kirill - 2012-08-27

    Don't wrap long lines applies only to copy operation, not to the output of the underlying shell.

    There is also some guessing involved: if the last char on a line is not a space, the line is considered to be long.

    Inability to set Console's columns to large number usually caused by too big font in the underlying shell. Select View > Console Window, in the opened window select Properties in the system menu, on the Font tab change the size to smaller size (and while you're there change Font to a TrueType font). It does look like the Buffer size is limited at 200, but with a smaller font you can increase the Window size.

     
  • Kirill

    Kirill - 2012-08-27
    • priority: 5 --> 1
    • status: open --> pending-invalid
     
  • Marko Bozikovic

    Marko Bozikovic - 2012-08-27

    Hi,

    I just wanted to write an answer, but I see Kirill beat me to it :)

    Cheers,
    --
    Marko

     
  • xtal256

    xtal256 - 2012-08-28

    Thanks guys.

    But you still didn't explain why the buffer size is limited to 200. Is that something that was done on purpose? Because it is certainly possible to set the size greater in Windows console.
    Also, i have set the font size is the same in Windows console and Console2.

     
  • Kirill

    Kirill - 2012-08-28

    I don't think there is a [well formulated] explanation, except that the default cmd settings on most systems would not work very well. The code says: maximum is 200 (same value for rows, columns, buffer columns).

    Until the code is changed, you can edit console.xml (either in the same directory as console.exe or in %appdata%\console) and change columns="80" and buffer_columns="0" attributes of the <console ... > tag manually.

    Like I said, you will have more flexibility in Console if you change the Font in View > Console Window > System Menu > Properties to a smaller, TrueType font.

     
  • Kirill

    Kirill - 2012-08-28
    • status: pending-invalid --> pending-accepted
     
  • Kirill

    Kirill - 2012-08-28
    • status: pending-accepted --> open
     
  • xtal256

    xtal256 - 2012-09-03

    Hi Kirill.

    Thanks for the advice on editing console.xml, that did the trick :)

    And perhaps i should have explained more about the font. The one that i am using, both for Windows console and this one, is Consolas (TrueType). It is size 10 (pt, i suppose) in Console, and 15px in Windows - which i guess is the same because they look the same size.

    But that's not even the problem. Regardless of the font size, i wanted to increase the column width so that long lines do not wrap, and so that i can maximise the window. ... I just realised that even with more columns, Console still will not allow me to maximise the window. So i will raise another request for that.

     

Log in to post a comment.