ncurses rendering issue under wsl/ubuntu #387

Closed
opened 2026-01-30 21:50:31 +00:00 by claunia · 1 comment
Owner

Originally created by @tenox7 on GitHub (Sep 28, 2018).

  • Your Windows build number: Microsoft Windows [Version 10.0.17134.285]

  • What you're doing and what's happening: Under WSL/Ubuntu/18.04 this simple ncurses code should display 5 x characters.

#include <stdio.h>
#include <curses.h>

int main(int argc, char *argv[]) {
    int i;
    initscr();
    erase();
    for(i=0; i<5; i++)
        mvaddch(0, i, 'x');
    refresh();
    getch();
    endwin();
  • What's wrong / what should be happening instead:

Only one x character is displayed.
5 x characters should be displayed.

Note that this is problem with Windows Console specifically. When running over wsl-bridge (eg wsltty or wsl-terminal) this works correctly.

Originally created by @tenox7 on GitHub (Sep 28, 2018). * Your Windows build number: Microsoft Windows [Version 10.0.17134.285] * What you're doing and what's happening: Under WSL/Ubuntu/18.04 this simple ncurses code should display 5 x characters. ``` #include <stdio.h> #include <curses.h> int main(int argc, char *argv[]) { int i; initscr(); erase(); for(i=0; i<5; i++) mvaddch(0, i, 'x'); refresh(); getch(); endwin(); ``` * What's wrong / what should be happening instead: Only one x character is displayed. 5 x characters should be displayed. Note that this is problem with Windows Console specifically. When running over wsl-bridge (eg wsltty or wsl-terminal) this works correctly.
claunia added the Issue-FeatureProduct-ConhostResolution-Duplicate labels 2026-01-30 21:50:31 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Sep 28, 2018):

I'm fairly certain this is a dupe of #240

@zadjii-msft commented on GitHub (Sep 28, 2018): I'm fairly certain this is a dupe of #240
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#387