Split mode bits between Term and TermWindow
authorDevin J. Pohly <djpohly@gmail.com>
Fri, 23 Feb 2018 20:16:52 +0000 (14:16 -0600)
committerDevin J. Pohly <djpohly@gmail.com>
Mon, 26 Feb 2018 03:56:26 +0000 (21:56 -0600)
commit05c66cb37d9ff278a3e0c45682c4b5e7945deb42
tree273ee88089e86784a261c5564dd51e9489bcd09e
parent33201ac65f74e45b4fa60822ba9a538c3cfa9b25
Split mode bits between Term and TermWindow

Moves the mode bits used by x.c from Term to TermWindow, absorbing
UI/input-related mode bits (visible/focused/numlock) along the way.

This is gradually reducing external references to Term.  Since
TermWindow is already internal to x.c, we add xsetmode() to allow st to
modify window bits in accordance with escape sequences.

IS_SET() is redefined accordingly (term.mode in st.c, win.mode in x.c).

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
st.c
st.h
win.h
x.c