Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Sebastian Huber
On 13.12.23 03:47, chr...@rtems.org wrote: +const int timeout = 150; +bool row_cols_swapped = false; memset(&buf[0], 0, sizeof(buf)); +/* + *https://github.com/tmux/tmux/issues/3457 + * + * Tmux has a bug where the lines and cols are swapp

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Chris Johns
On 13/12/2023 5:37 pm, Sebastian Huber wrote: > On 13.12.23 07:36, Chris Johns wrote: >> Sorry, I am not sure I understand. Are you suggesting the version detection >> against the string in the buffer is in a helper function? > > Yes, this complete new code block. The query for the terminal type

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Sebastian Huber
On 13.12.23 07:36, Chris Johns wrote: Sorry, I am not sure I understand. Are you suggesting the version detection against the string in the buffer is in a helper function? Yes, this complete new code block. -- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germ

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Chris Johns
On 13/12/2023 5:32 pm, Sebastian Huber wrote: > On 13.12.23 03:47, chr...@rtems.org wrote: >> +    /* >> + *https://github.com/tmux/tmux/issues/3457 >> + * >> + * Tmux has a bug where the lines and cols are swapped. There is a >> lag >> + * in the time it takes

Re: [PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread Sebastian Huber
On 13.12.23 03:47, chr...@rtems.org wrote: +/* + *https://github.com/tmux/tmux/issues/3457 + * + * Tmux has a bug where the lines and cols are swapped. There is a lag + * in the time it takes to get the fix into code so see if tmux is + * running an

[PATCH] libmisc/shell: Work around tmux bug in row and column

2023-12-12 Thread chrisj
From: Chris Johns - Extend the timeout to 150 msec for long remote sessions - Improve the performance of the detection Closes #4975 Closes #4977 --- cpukit/libmisc/shell/shell.c | 141 --- 1 file changed, 116 insertions(+), 25 deletions(-) diff --git a/cpukit/l