8000 multiline input: unable to delete previous lines · Issue #22 · andir/ate · GitHub
[go: up one dir, main page]

Skip to content

multiline input: unable to delete previous lines #22

Open

Description

@mcpcpc

This behavior was first reported as part of mcpcpc/kirc#39 and appears to impact multiple terminal emulators (e.g. foot and st) while behaving fine in others (e.g. xterm)

To reproduce, one simply needs to read input from stdin (e.g. fgets) and type more characters than the width of the terminal window. the text that is longer than window width is then printed as a new line, making the previous line uneditable.

A simple verifiable example (written in C) includes the following:

#include <stdio.h>
#include <stdlib.h>

int
main() {
    char a[1000];
    fgets(a, 1000, stdin);
    printf("string: %s\n", a);
    return 0;
}

Activity

  1. andir commented on Oct 1, 2020

    @andir
    Owner

    Yeah, I can confirm that this is happening. In this case It is probably worth testing with gnome-terminal and/or reporting the issue to with libvte as that is basically all I'm using here.

  2. mcpcpc commented on Oct 1, 2020

    @mcpcpc
    Author
  3. andir commented on Oct 1, 2020

    @andir
    Owner

    This could also be somewhat related to the issue: https://gitlab.gnome.org/GNOME/vte/-/issues/62

  4. mcpcpc commented on Oct 1, 2020

    @mcpcpc
    Author

    submitted upstream to libvte: https://gitlab.gnome.org/GNOME/vte/-/issues/287

    ahh yes! somehow missed this Item 2 is identical to the issue. also, i can confirm that the behavior is “fine” with using a terminal multiplexer, such as screen.

    seems that the best solution, until corrected upstream is to use urxvt, screen or tmux.

  5. andir commented on Oct 1, 2020

    @andir
    Owner
  6. mcpcpc commented on Oct 1, 2020

    @mcpcpc
    Author

    Here's another relevant conversation I am having with the developer of the foot terminal emulator: link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0