* Make DefaultConfig safer
Instead of having a global mutable DefaultConfig which might be
changed by anything during run/test time turn DefaultConfig into a
function which returns a fresh DefaultConfig. This is safer and more
convenient.
* Decouple vttest tests from user's config
The screen capture tests were failing on my machine because the screen
capture based vttest tests were using my personal config in
~/.config/aminal/config.toml. This had different colours and a fixed
DPI scaling factor which mean the screen captures didn't match.
The sixel tests were also failing because my login shell is a highly
customised zsh.
A static test config is now passed by the vttest tests and the shell
is set to "/bin/sh" on Linux, OSX etc to help avoid problems due to
differences between shells and shell configs.
* Added Make targets for gofmt
- `make check-gofmt` will check for files that aren't gofmt compliant
- `make gofmt` will fix any gofmt error's in Aminal's source
Vendored files are ignored.
* Add gofmt check to TravisCI checks
* Fix gofmt errors
* Correct handling of DeviceAttributes request
* added DECCOLM support
* added DECALN control sequence support
* added NEL support
* bug fix: Erase To Cursor should be inclusive
* added support for 'Origin Mode' (DECOM) -- top/bottom margins only
* vttest test 1 screen 3: margin tests fixes
* added support for intermediate controls inside CSI sequence
* added support for LNM (Line Feed/New Line Mode)
* removed obsolete 'intermediate' parameter
* window resize on programmatic CSI resize
* DECCOLM should clear screen on both set and reset
* bug fix in autowrap mode
* TestCursorMovement runs all test cases; screen template images updated
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
* bug fix: line mode messing with autowrap
* added ResetVerticalMargins() method
* IsAutoWrap(), IsNewLineMode()
* corrected DECALN
* fixed NEL to work in Line Feed mode
* tyding up: removed map of 1 element
* Run vttest on Travis to validate active buffer data and screenshot.
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>
* Add deps sources to vendor
Signed-off-by: Max Risuhin <risuhin.max@gmail.com>