Commit graph

11 commits

Author SHA1 Message Date
Nathan Rajlich
5fcf250c04 add TERM_PROGRAM and TERM_PROGRAM_VERSION env vars (#350)
* add `TERM_PROGRAM` and `TERM_PROGRAM_VERSION` env vars

MacOS's Terminal.app sets these same env variables.
They're useful to be able to sniff out the type of
terminal emulator and do different settings in your
bashrc / vimrc / etc. configuration files.

So for example, `TERM_PROGRAM` will be "HyperTerm",
and `TERM_PROGRAM_VERSION` will be the value from `package.json/version`.

* fix require package.json path
2016-07-21 20:27:07 -07:00
Nathan Rajlich
4206f4e96f add LANG env variable (#354)
Fixes #346.
2016-07-21 15:58:30 -07:00
Mike
8164d673e0 Add an option for a non-login shell to be run (#192)
* Add an option for a non-login shell to be run

By default, however, the user's login shell will be used

* Reset shell default to empty string, and improve documentation
2016-07-17 14:05:08 -07:00
Harrison Harnisch
04c0b1acff Provide hooks to open a new tab to the same directory (#174)
* provide a cwd for #4

* expose a pid for #4
2016-07-16 15:41:13 -07:00
Guillermo Rauch
2f2268906a session: improve title subscriptions 2016-07-14 16:16:44 -07:00
Guillermo Rauch
2143bc7b77 improve workflow 2016-07-13 14:06:05 -07:00
Guillermo Rauch
7a6fc8ad8c session: improve title retrieval 2016-07-08 14:26:44 -07:00
Guillermo Rauch
d8e841a3d8 Implement hterm (#28)
* remove legacy css

* hyperterm: delegate rows / cols calculation to hterm

* session: handle pty kill problems

* index: fix memory leak by removing sessions from the map upon exit

* app: remove local copy of `xterm.js`

* term: implement the `hterm` API and some needed overrides

* package: add `hterm-umd`

* hyperterm: add optimistic tab exit

* hyperterm: delegate key combination detection to the hterm <iframe> document

* term: register keyboard

* session: fix incorrect width after resizing and creating a new tab (#13)

* tabs: fix `user-select` css property

* term: fix focus issue when exiting a url

Instead of uninstalling the keyboard, we keep the
focus on the underlying terminal.

We register a new IO handler so that we intercept
all data events.

The reason we need to do this is that we can't
programmatically restore focus on the underlying
terminal unless it's in the same tick as a user
event (ie: click).

Since we were uninstalling the keyboard and
subsequently attempting to reinstall it without
such an event, pressing Ctrl+C after a url was
effectively resulting in a loss of focus and a
horrible horrible experience.

Now it's fixed :)

* text-metrics: remove module no longer used

hterm has a much better calculation technique anyways

* term: fix default bg

* term: fix nasty hterm bug that triggered an infinite copy loop

* index: add separator in `View` menu for full screen item

* term: implement cmd+K clearing and improve hterm's `wipeContents`
2016-07-03 13:35:45 -07:00
Guillermo Rauch
a4bfd0ae1e add default-shell and missing --login option for interactive mode
seriously @sindresorhus every single package I need…
2016-07-01 16:50:28 -07:00
Guillermo Rauch
384494d4a7 handle resize error better 2016-06-30 23:25:19 -07:00
Guillermo Rauch
1a1178bd38 initial commit 2016-06-30 23:01:04 -07:00