Commit Graph
441 Commits
Author SHA1 Message Date
Andrey Petrov 69c496424e go mod tidy 2019-03-21 15:33:18 -04:00
Andrey Petrov 6acb0bf809 sshchat, host: Switch to new terminal clearline api 2019-03-21 15:33:18 -04:00
Andrey Petrov b4ba8226c6 sshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...) 2019-03-21 15:33:18 -04:00
Andrey Petrov 9d2230eaff sshchat: Fix tests to use new rendering format. 2019-03-21 15:33:18 -04:00
Andrey Petrov 418c991677 sshd/terminal: Use N-moves in Terminal.move when possible 2019-03-21 15:33:18 -04:00
Andrey Petrov 8b710da728 sshd/terminal: Fix mid-line enter and reflow bugs 2019-03-19 12:09:54 -04:00
Andrey Petrov 4240130978 legal: Put sshd/terminal notice in root 2019-03-18 15:36:21 -04:00
Andrey Petrov 8653f0a730 sshchat: Replace terminal echo hack with our forked terminal 2019-03-18 10:08:39 -04:00
Andrey Petrov 1ba36b785c sshd/terminal: Add Terminal.ClearLine option 2019-03-18 10:08:39 -04:00
Andrey Petrov 596d41ff29 sshd/terminal: Add original LICENSE 2019-03-18 10:08:39 -04:00
Andrey Petrov aecd8c66c3 sshd/terminal: Import fork of x/crypto/ssh 2019-03-18 10:08:39 -04:00
Andrey Petrov 2089eda486 chat: Fix runtime bug with uninitialized strings builder 2019-03-18 10:08:12 -04:00
Andrey Petrov b8fb704c8f sshchat: Fix empty messages borking rendering 2019-03-17 16:10:16 -04:00
Andrey Petrov 5ff61f0a0f /timestamp: Remove timezone by default for now 2019-03-17 16:05:38 -04:00
Andrey Petrov a90574126e /timestamp: Switch TZINFO with UTC offset 2019-03-17 16:00:48 -04:00
Andrey Petrov 078fbbe828 chat, internal/humantime: Tweak departure message 2019-03-17 15:01:41 -04:00
Andrey Petrov fa516ba085 Merge pull request #304 from shazow/autocomplete-sort
chat: Sort NamesPrefix by recently active
2019-03-17 14:42:04 -04:00
Andrey Petrov 1c44c714e6 chat: Sort NamesPrefix by recently active 2019-03-17 14:41:03 -04:00
Andrey Petrov c02b6390d2 /timestamp now prefixes each line with a timestamp
Freakin' Timestamps On Every Freakin' Line
2019-03-17 14:05:22 -04:00
Andrey Petrov 9c3db55c83 sshchat: Echo command messages with the new timestamp code. 2019-03-17 13:50:01 -04:00
Andrey Petrov 8282fad7dc chat: Add timezone support to /timestamp 2019-03-16 12:20:43 -04:00
Andrey Petrov 54ce8bb08d chat: Remove injectTimestamp after 30min stuff 2019-03-16 11:52:07 -04:00
Andrey Petrov 783c607fad chat/message: Add second resolution 2019-03-16 11:52:07 -04:00
Andrey Petrov 33d0c08ffe chat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting 2019-03-16 11:52:07 -04:00
Andrey Petrov eb10bad08e sshchat, chat: Override terminal echo and do our own echo 2019-03-16 11:52:07 -04:00
Andrey Petrov 6d3fce47cc Revert "host: Add timestamps into prompt when enabled"
This reverts commit 6ce14bfc33e5a5aeb6003cdec9a873588eabe8f0.

We're going to do another approach.
2019-03-16 11:52:07 -04:00
Andrey Petrov 4188a3bdac host: Add timestamps into prompt when enabled 2019-03-16 11:52:07 -04:00
Andrey Petrov dca2cec67f chat/message: Add timestamp prefix support 2019-03-16 11:52:07 -04:00
Andrey Petrov 924c6bd234 Makefile: Use static builds by default 2019-03-15 22:56:48 -04:00
Andrey Petrov d3eda56f82 build: Update go modules 2019-03-15 22:40:30 -04:00
Andrey Petrov 3f0faf761e main: Skip command autocomplete if space-prefixed
Fixes #300
2019-03-15 18:39:53 -04:00
Andrey Petrov ae46a91e0f /reply: Set reply target properly
Fixes #299
2019-03-15 18:32:46 -04:00
Andrey Petrov 0b06b56c0e main: --admin and --whitelist: Skip non-key lines
Closes #298
2019-03-15 18:30:21 -04:00
Andrey Petrov 60701198fc /op: Fix room op being tied to the nick, add remove option
Closes #301
2019-03-15 18:18:20 -04:00
Ulisse Mini 953c3d46b2 chat: Use strings.Builder 2019-02-24 09:40:47 -06:00
UlisseMini 7b06848c75 Makefile: Remove unneeded variable 2019-02-24 09:40:47 -06:00
UlisseMini f3c80047b9 Makefile: Use go test ./... to test all packages. 2019-02-24 09:40:47 -06:00
UlisseMini c1a8912297 sanitize: Move global variables to top of file 2019-02-24 09:40:47 -06:00
UlisseMini 4c968fc966 chat: Use a string instead of a bytes.Buffer 2019-02-24 09:40:47 -06:00
UlisseMini 9c918676ed sshd: Better comments and changed += 1 to ++ 2019-02-24 09:40:47 -06:00
UlisseMini e6233daefd sshd: Better comments 2019-02-24 09:40:47 -06:00
UlisseMini 40f6957e93 chat: Better comments 2019-02-24 09:40:47 -06:00
UlisseMini a1b891aae2 host.go: drop = 0 from declaration; it is the zero value (golint) 2019-02-24 09:40:47 -06:00
UlisseMini 57c6abe86c Better comments 2019-02-24 09:40:47 -06:00
Andrey Petrov 3813360d91 cmd/ssh-chat: Set ServerVersion to include ssh-chat 2019-02-11 15:21:56 -05:00
Ulisse mini 81d7e16862 cmd, main: Return instead of os.Exit(0), use ioutil.Discard for default logger
* logger: change nil bytes.Buffer into ioutil.Discard

* cmd.go: Clearify imports

* cmd.go: Use return instead of os.Exit(0)
2019-01-25 13:42:27 -05:00
Ulisse mini 429ebbf60d logger: change nil bytes.Buffer into ioutil.Discard (#293) 2019-01-23 11:31:33 -05:00
Robert Hailey 40bf204058 chat: When a user leaves, add time since they joined to the exit message.
* Show the connection duration upon departure

* humantime: ugly sub-second precision replaces grammatically incorrect "1 seconds" message

* simplify function name

* humantime: repair unit test

* move: util/humantime -> internal/humantime

* go fmt everything
2019-01-02 15:46:21 -05:00
Andrey Petrov 60f3202818 go mod tidy 2018-12-27 13:46:04 -05:00
Andrey Petrov a998e91639 travisci: Remove explicit dep fetch (#287) 2018-12-25 14:53:38 -05:00