[9fans] invisible prompt in win - Plan9

This is a discussion on [9fans] invisible prompt in win - Plan9 ; 1. Open a "win" in acme. 2. Scroll down as far as possible. 3. Notice that there is no $prompt visible at left. 4. echo annoying 5. Now scroll back up and it turns out you entered the echo command ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: [9fans] invisible prompt in win

  1. [9fans] invisible prompt in win

    1. Open a "win" in acme.
    2. Scroll down as far as possible.
    3. Notice that there is no $prompt visible at left.
    4. echo annoying
    5. Now scroll back up and it turns out you entered the echo command at
    a prompt after all!


  2. Re: [9fans] invisible prompt in win

    On Fri, Oct 3, 2008 at 7:14 AM, Michael Brown wrote:
    > 1. Open a "win" in acme.
    > 2. Scroll down as far as possible.
    > 3. Notice that there is no $prompt visible at left.
    > 4. echo annoying
    > 5. Now scroll back up and it turns out you entered the echo command at
    > a prompt after all!


    Not entirely sure what other behaviour you were expecting? You
    scrolled all the way down, leading to no text on your pane (it's all
    up above), but your cursor is still where you left it (all the way at
    the end of the text in the pane, all the way at the beginning of your
    pane display).

    Robby


  3. Re: [9fans] invisible prompt in win

    This is not a bug.

    At any point in time, there is a character position
    associated with the upper left corner of the text window.
    Text before that position is not shown; text at or after
    that position is shown, until it runs off the bottom of
    the window. Let's call that upper left character position p0.

    Most of the time, acme/sam/rio work to arrange that p0
    follows a newline character, so that the window begins
    at the beginning of a line. Sometimes this is not possible.
    One case is when a line is very long--longer than the
    entire window--and you want to see the end of it.
    Another case is when you tell acme/sam/rio to scroll past
    the end of the text. Then p0 is the end of the text,
    right where your cursor is. When you type new text,
    it correctly shows at p0. The prompt is still there, just
    off the window to the top.

    You are expecting line-oriented behavior in a "stream of bytes" world.

    Russ


+ Reply to Thread