Skip to content

When opening a new VT apply default character attributes#3

Open
martin-hughes wants to merge 1 commit intodeadpixi:masterfrom
martin-hughes:default_on_create
Open

When opening a new VT apply default character attributes#3
martin-hughes wants to merge 1 commit intodeadpixi:masterfrom
martin-hughes:default_on_create

Conversation

@martin-hughes
Copy link

Previously, if I do something like this:

TMT* vt = tmt_open(80, 25, normal_callback, nullptr, nullptr);
tmt_write(vt, "hello", 5);
ASSERT_EQ(tmt_screen(vt)->lines[0]->chars[0].a.fg, TMT_COLOR_DEFAULT);

Then the assertion will fail as fg == 0. (The meaning of ASSERT_EQ is the same as in googletest). Hopefully the obvious fix of setting the defaults in tmt_open is OK.

I've also fixed a few typos in the README.

Also minor fixes to the documentation.
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.

1 participant