Peter Ammon
973f0f6134
Fix tmux-commandline.fish test harder
...
Make this pass on both macOS and Linux.
This was an obnoxious and uninteresting test to debug and so I used
claude code. It insists this is due to differences in pty handling between
macOS and Linux. Specifically it writes:
The test was failing inconsistently because macOS and Linux have different
PTY scrollback behavior after rendering prompts with right-prompts.
Root cause: After fish writes a right-prompt to the rightmost column,
different PTY drivers position the cursor differently:
- macOS PTY: Cursor wraps to next line, creating a blank line
- Linux PTY: Cursor stays on same line, no blank line
This is OS kernel-level PTY driver behavior, not terminal emulator behavior.
Fix: Instead of hardcoding platform-specific offsets, detect the actual
terminal behavior by probing the output:
1. Capture with -S -12 and check if the first line is blank
2. If blank (macOS behavior), use -S -13 to go back one more line
3. If not blank (Linux behavior), use -S -12
Also split the C-l (clear-screen) command into its own send-keys call
with tmux-sleep after it, ensuring the screen clears before new output
appears. This improves test stability on both platforms.
The solution is platform-independent and adapts to actual terminal
behavior rather than making assumptions based on OS.
2025-10-26 13:34:35 -07:00
..
2019-06-25 22:31:06 +02:00
2025-02-07 12:28:59 +01:00
2025-06-23 13:53:43 +02:00
2025-03-13 18:13:10 +01:00
2024-04-12 12:28:22 +02:00
2025-08-30 01:55:56 +10:00
2025-05-29 17:57:38 +02:00
2025-08-30 01:55:56 +10:00
2025-09-20 13:56:23 +02:00
2025-10-11 17:54:09 +02:00
2025-04-03 00:51:35 +02:00
2025-10-22 10:57:36 +02:00
2025-01-01 16:45:43 +01:00
2025-09-20 13:56:23 +02:00
2025-03-13 18:13:10 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-09-30 10:37:11 +02:00
2025-10-14 12:02:08 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2019-11-02 16:48:08 -07:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-15 11:18:46 +01:00
2024-04-12 12:28:22 +02:00
2025-10-06 15:04:19 +02:00
2025-01-11 21:13:19 +01:00
2025-01-01 16:45:43 +01:00
2025-10-05 15:16:41 +02:00
2025-05-29 17:57:38 +02:00
2025-10-07 17:26:48 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-02-27 10:33:22 +08:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-10-11 17:54:09 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-19 18:47:28 +01:00
2024-04-12 12:28:22 +02:00
2025-03-13 18:13:10 +01:00
2025-05-04 18:19:42 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-02-02 13:41:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-10-11 17:54:09 +02:00
2024-06-06 16:47:39 +02:00
2025-10-15 12:51:20 +02:00
2025-10-15 12:51:20 +02:00
2025-01-01 16:45:43 +01:00
2025-10-25 11:56:43 -07:00
2024-04-12 12:28:22 +02:00
2024-05-25 13:20:05 +02:00
2025-08-07 10:19:42 +00:00
2025-10-11 10:50:07 +02:00
2025-10-11 17:54:09 +02:00
2025-09-30 11:47:26 +02:00
2025-03-25 11:16:18 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-05-11 22:00:43 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-04-18 20:22:30 +02:00
2025-09-20 13:56:23 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-10-11 17:54:09 +02:00
2024-04-12 12:28:22 +02:00
2025-08-30 01:55:56 +10:00
2025-01-19 18:29:07 +01:00
2025-10-20 03:42:38 +02:00
2025-01-01 16:45:43 +01:00
2025-10-16 16:43:03 +02:00
2024-09-18 22:27:00 +02:00
2025-09-30 11:47:26 +02:00
2025-09-30 11:50:43 +02:00
2025-04-11 17:29:22 +02:00
2025-01-01 16:45:43 +01:00
2024-04-25 21:52:56 +02:00
2025-03-13 18:13:10 +01:00
2024-04-13 15:33:05 +02:00
2025-06-05 14:10:47 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2025-09-13 15:10:24 +02:00
2025-10-09 18:12:03 +02:00
2025-09-20 13:56:23 +02:00
2025-10-05 15:16:41 +02:00
2024-04-12 12:28:22 +02:00
2025-08-15 15:02:44 -04:00
2024-12-02 19:06:14 +01:00
2025-01-01 16:45:43 +01:00
2025-10-06 15:04:19 +02:00
2024-04-12 12:28:22 +02:00
2024-04-21 14:35:13 +02:00
2024-04-12 12:28:22 +02:00
2025-01-11 21:13:19 +01:00
2025-03-13 18:13:10 +01:00
2024-04-12 12:28:22 +02:00
2025-08-30 01:55:56 +10:00
2025-09-30 11:47:26 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-10-13 10:44:38 +02:00
2025-09-24 15:51:32 +02:00
2025-09-24 15:51:32 +02:00
2025-09-27 14:22:18 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-01 16:45:43 +01:00
2025-09-27 14:22:18 +02:00
2024-04-12 12:28:22 +02:00
2025-08-30 02:57:01 +10:00
2025-05-01 14:57:30 +02:00
2025-02-02 13:41:43 +01:00
2025-03-13 18:13:10 +01:00
2024-04-21 14:25:54 +02:00
2024-04-21 14:25:54 +02:00
2024-04-12 12:28:22 +02:00
2025-03-13 18:13:10 +01:00
2025-10-23 11:48:24 +02:00
2025-01-17 09:58:26 +01:00
2025-10-23 11:48:24 +02:00
2024-04-12 12:28:22 +02:00
2025-10-26 13:34:35 -07:00
2025-02-16 11:44:43 -08:00
2024-12-30 10:50:38 +01:00
2025-10-23 11:48:24 +02:00
2025-10-11 17:54:09 +02:00
2025-10-23 11:48:24 +02:00
2025-02-16 13:02:23 -08:00
2025-10-23 11:48:24 +02:00
2025-10-23 11:48:24 +02:00
2025-10-11 18:02:57 +02:00
2025-10-26 12:06:35 -07:00
2025-10-23 11:48:24 +02:00
2025-03-21 00:53:06 +01:00
2025-10-23 11:48:24 +02:00
2025-10-23 11:48:24 +02:00
2025-01-19 18:29:07 +01:00
2025-10-23 11:48:24 +02:00
2025-10-23 11:48:24 +02:00
2025-10-23 11:48:24 +02:00
2025-10-23 11:48:24 +02:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00
2025-01-26 20:30:48 -08:00
2025-09-30 11:47:26 +02:00
2025-01-01 16:45:43 +01:00
2025-01-01 16:45:43 +01:00
2025-01-19 18:34:59 +01:00
2025-01-01 16:45:43 +01:00
2025-03-15 10:54:12 +01:00
2025-07-03 14:38:42 +02:00
2025-10-11 17:54:09 +02:00
2025-01-01 16:45:43 +01:00
2024-04-12 12:28:22 +02:00
2024-04-12 12:28:22 +02:00