Commit Graph

277 Commits

Author SHA1 Message Date
Iwasaki Yudai
783e3fd925 Don't translate input
When `send-encoding` is `utf-8`, hterm translate input from the
clipboard from UTF-16 to UTF-8, even when the input is indeed UTF-8.
This translation messes up all non ASCII input.
2015-08-25 11:23:38 +09:00
Iwasaki Yudai
d4475579ff Close listener after calling StartRoutine()
This change prevents the listener from closing itself before
establishing the websocket session with the client.
2015-08-24 12:15:24 -07:00
Iwasaki Yudai
6d1a19b1d5 Mention --once option in README 2015-08-24 19:50:22 +09:00
Iwasaki Yudai
bfa24e29f9 Merge pull request #43 from jay2u/master
fix typo
2015-08-24 03:40:40 -07:00
Iwasaki Yudai
b37f7973bd Credit braintree/manners 2015-08-24 19:39:06 +09:00
Iwasaki Yudai
470621f39e Add --once option that accepts only one client and exit 2015-08-24 19:35:49 +09:00
Jan-Willem Korver
e61dfafabb fix typo 2015-08-24 18:34:47 +08:00
Iwasaki Yudai
e613b29cc3 Shutdown server gracefully with Ctrl-C 2015-08-24 19:22:25 +09:00
Iwasaki Yudai
94a6230355 Add golang/go and jteeuwen/go-bindata to LICENSE 2015-08-24 17:17:25 +09:00
Iwasaki Yudai
7b6911d7dd Support TLS/SSL encryption 2015-08-24 16:43:03 +09:00
Iwasaki Yudai
c56e41b56b Extract function for loading profile files 2015-08-24 16:13:22 +09:00
Iwasaki Yudai
acacba6f03 Support auto reconnection
A new option `--auto-reconnect` which takes seconds to reconnect is
added.
2015-08-24 07:14:24 +09:00
Iwasaki Yudai
4df9ac8059 Use url.URL for constructing URLs 2015-08-24 05:34:56 +09:00
Iwasaki Yudai
ca14394ec8 Use net.JoinHostPort for better IPv6 handling 2015-08-24 05:22:47 +09:00
Iwasaki Yudai
5d2cdd2768 Show IPv6 addresses with [ and ]
So that users can open IPv6 URLs on web browsers.
2015-08-24 05:05:58 +09:00
Iwasaki Yudai
a0f6e8d051 Address darwin_amd64.tar.gz is for OS X users on README 2015-08-24 04:54:15 +09:00
Iwasaki Yudai
fabc3a49b3 Add arm to supported architecture 2015-08-24 04:53:15 +09:00
Iwasaki Yudai
ee45d8e145 Replace user.Current() with os.Getenv("HOME")
`os/user.Current()` is not available on Darwin when a binary is cross
compiled from another platform.
See also: https://github.com/golang/go/issues/6376
2015-08-24 04:48:49 +09:00
Iwasaki Yudai
56ae9ab9fc Add releases budge and license badge 2015-08-23 23:51:28 +09:00
Iwasaki Yudai
39293933c5 Show error when failed to get current user 2015-08-23 23:28:56 +09:00
Iwasaki Yudai
45f65bfc29 Support profile files to customize hterm 2015-08-23 22:58:01 +09:00
Iwasaki Yudai
afd40ea15d Add --title-format to README 2015-08-23 22:43:32 +09:00
Iwasaki Yudai
04d9671735 Fix GOTTY_TITLE_FORMAT 2015-08-23 21:32:32 +09:00
Iwasaki Yudai
ac0cb74f98 Log PermitWrite mode 2015-08-23 21:00:52 +09:00
Iwasaki Yudai
a765d6c660 Set window title by control message 2015-08-23 20:54:46 +09:00
Iwasaki Yudai
67b54b7f20 Show command and hostname in windows title 2015-08-23 14:09:13 +09:00
Iwasaki Yudai
5ee6356242 Release v0.0.3
* Client PTYs are closed properly without EOF byte
* Added the "-r" option to generate random URL by @shoz
* Added BSD support
2015-08-22 15:41:03 +09:00
Iwasaki Yudai
94f571d629 Add BSDs to supported platforms 2015-08-22 13:18:37 +09:00
Iwasaki Yudai
b18d35f267 Show URLs on starting 2015-08-22 13:18:37 +09:00
Iwasaki Yudai
8923220528 Clean up app.Run() 2015-08-22 13:18:35 +09:00
Iwasaki Yudai
9b77c32d7c Explain architecture briefly in README
Mentioning hterm and wetty so that people don't get confused that GoTTY
has an original terminal implementation.
2015-08-22 09:52:46 +09:00
Iwasaki Yudai
beda1d7ab7 Close pty 2015-08-21 19:08:51 +09:00
Iwasaki Yudai
23ca3c8d13 Add -r (random URL) option to README 2015-08-21 19:06:19 +09:00
Iwasaki Yudai
b68e889762 Restructure handler function and move methods to clientContext 2015-08-21 19:01:09 +09:00
Iwasaki Yudai
8758dc0541 Isolate help message template 2015-08-21 19:01:09 +09:00
Iwasaki Yudai
25627da86f Restructure handler function 2015-08-21 19:01:09 +09:00
Iwasaki Yudai
7e2befa1bb Add make resource that simply generates app/resource.go
Easy to run when you don't want to build a binary.
2015-08-21 19:01:08 +09:00
Iwasaki Yudai
5eea5067db Simplify structure of command messages
The first byte of a input message shows the type of that message.
0: normal keystrokes
1: resize window command
2015-08-21 19:01:06 +09:00
Iwasaki Yudai
ce96943af2 Create App instance with struct of options 2015-08-21 18:30:44 +09:00
Iwasaki Yudai
e09d6e0486 Merge pull request #27 from shoz/randomurl
Random URL generation(Close #17)
2015-08-21 02:19:27 -07:00
Shoji Ihara
b15227c696 Random URL generation(Close #17) 2015-08-21 18:15:00 +09:00
Iwasaki Yudai
2aaa155a3e Call Wait() to prevent processes from being defunct 2015-08-21 12:36:26 +09:00
Iwasaki Yudai
b4b9435b58 Don't send EOT
It was a bug that sending EOT when closing connection.
2015-08-21 12:34:15 +09:00
Iwasaki Yudai
10d0bd8a17 Log PID of processes for clients 2015-08-21 12:33:44 +09:00
Iwasaki Yudai
fd4a9d3bf8 Mention -c option in README 2015-08-20 17:34:49 +09:00
Iwasaki Yudai
496c791a68 Release v0.0.2
* Added the `-c` option for Basic Authentication by @mattn
* Experimental 32 bit support
* Switch to Go1.5
2015-08-20 17:26:11 +09:00
Iwasaki Yudai
4b39b4a390 Add development section to explain how to build binaries 2015-08-20 17:21:05 +09:00
Iwasaki Yudai
372ac4fbc1 Gofmt generated resource file 2015-08-20 17:16:13 +09:00
Iwasaki Yudai
65207dfa35 Add 32 bit build support for Wercker 2015-08-20 16:52:32 +09:00
Iwasaki Yudai
6a43836f0b Add go fmt to check format of code 2015-08-20 16:48:35 +09:00