Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI via GitHub Actions #230

Merged
merged 34 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ffdb045
display a table of the available 256 colors
scrouthtv Nov 5, 2020
27749c4
basic rgb usage working
scrouthtv Nov 5, 2020
d347a0b
added rgb demo
scrouthtv Nov 5, 2020
dcc430d
moved two new functions to a better place
scrouthtv Nov 5, 2020
6f2281e
slight performance increase
scrouthtv Nov 5, 2020
33a762c
documentation for public methods
scrouthtv Nov 5, 2020
b53f34a
extra attributes wip
scrouthtv Nov 5, 2020
bf2abfc
cursive mode working
scrouthtv Nov 5, 2020
a08d44e
implemented dim, blink hidden
scrouthtv Nov 5, 2020
8d78c26
code cleanup
scrouthtv Nov 5, 2020
a9ebf8a
added option to turn off rgb mode for testing dim
scrouthtv Nov 6, 2020
e139417
Added a max_attr at the end of the attribute list.
scrouthtv Nov 6, 2020
8093db4
Added brighter colors
scrouthtv Nov 6, 2020
694f63e
added demo for brighter colors
scrouthtv Nov 6, 2020
a325f32
fix for python 3.8
scrouthtv Nov 6, 2020
5951683
Minor fix to allow drawing in the default color in RGB mode
scrouthtv Nov 6, 2020
e788edd
moved the function to have a compilable windows version
scrouthtv Nov 6, 2020
788cdd7
Update README.md
scrouthtv Nov 7, 2020
018e6e1
minor fix to one of the examples
scrouthtv Nov 6, 2020
1d5051b
quit demo with any key
scrouthtv Nov 6, 2020
6acdded
fixed an issue where closing termbox multiple times would lock up the…
scrouthtv Nov 7, 2020
06a5ffe
bugfix
scrouthtv Nov 8, 2020
14551e6
Merge pull request #1 from nsf/master
scrouthtv Nov 23, 2020
bff17c8
Create test-ubuntu.yml
scrouthtv Nov 23, 2020
400cbc2
Update test-ubuntu.yml
scrouthtv Nov 23, 2020
f1efd79
Added an hello world file
scrouthtv Nov 23, 2020
4bba5f6
Update test-ubuntu.yml
scrouthtv Nov 23, 2020
c62478d
added support for go modules
scrouthtv Nov 24, 2020
c7a5c2c
Can't run hello world in the GitHub container
scrouthtv Nov 24, 2020
b544ea2
Ported CI to macos, windows
scrouthtv Nov 24, 2020
28c7400
better names, macos should be working now
scrouthtv Nov 24, 2020
57c627f
fix for windows ci
scrouthtv Nov 24, 2020
a8e7236
fix for windows ci 2/?
scrouthtv Nov 24, 2020
e880207
CI via GitHub Actions working
scrouthtv Nov 24, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
implemented dim, blink hidden
  • Loading branch information
scrouthtv committed Nov 6, 2020
commit a08d44e997da716af72d8872596e8a97c134b49b
3 changes: 3 additions & 0 deletions api_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ const (
// them with caution and test your code on various terminals.
const (
AttrBold Attribute = 1 << (iota + 9)
AttrBlink
AttrHidden
AttrDim
AttrUnderline
AttrCursive
AttrReverse
Expand Down
17 changes: 16 additions & 1 deletion termbox.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ const (
t_sgr0
t_underline
t_bold
t_hidden
t_blink
t_dim
t_cursive
t_reverse
t_enter_keypad
Expand Down Expand Up @@ -248,7 +250,10 @@ func send_attr(fg, bg Attribute) {
if fg&AttrBold != 0 {
outbuf.WriteString(funcs[t_bold])
}
if bg&AttrBold != 0 {
/*if bg&AttrBold != 0 {
outbuf.WriteString(funcs[t_blink])
}*/
if fg&AttrBlink != 0 {
outbuf.WriteString(funcs[t_blink])
}
if fg&AttrUnderline != 0 {
Expand All @@ -257,6 +262,14 @@ func send_attr(fg, bg Attribute) {
if fg&AttrCursive != 0 {
outbuf.WriteString(funcs[t_cursive])
}
if fg&AttrHidden != 0 {
outbuf.WriteString(funcs[t_hidden])
}
if fg&AttrDim != 0 {
outbuf.WriteString(funcs[t_dim])
log("Wrinting dim")
log(funcs[t_dim])
}
if fg&AttrReverse|bg&AttrReverse != 0 {
outbuf.WriteString(funcs[t_reverse])
}
Expand All @@ -275,6 +288,8 @@ func send_char(x, y int, ch rune) {
}

func flush() error {
log("---------------------------")
log(outbuf.String())
_, err := io.Copy(out, &outbuf)
outbuf.Reset()
return err
Expand Down
4 changes: 3 additions & 1 deletion terminfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,10 @@ var ti_funcs = []int16{
39, // sgr0
36, // underline
27, // bold
32, // hidden
26, // blink
311, // italics
30, // dim
311, // cursive
34, // reverse
89, // enter keypad ("keypad_xmit")
88, // exit keypad ("keypad_local")
Expand Down