Skip to content

fix(uairctl): strip \0 delimiter and flush listen output#31

Open
xav-ie wants to merge 1 commit intometent:mainfrom
xav-ie:fix/uairctl-listen-null-delimiter
Open

fix(uairctl): strip \0 delimiter and flush listen output#31
xav-ie wants to merge 1 commit intometent:mainfrom
xav-ie:fix/uairctl-listen-null-delimiter

Conversation

@xav-ie
Copy link
Copy Markdown

@xav-ie xav-ie commented Feb 13, 2026

read_until(b'\0') includes the delimiter in the buffer, corrupting
output. Use writeln + flush so each update is a newline-terminated,
immediately-flushed line for consumers like waybar.

Fixes metent#15
@xav-ie xav-ie force-pushed the fix/uairctl-listen-null-delimiter branch from 3ac702d to 1842fbe Compare February 13, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uairctl listen prepends null terminators to every string except the first one

1 participant