Commit Graph

710 Commits

Author SHA1 Message Date
Marcin Kulik
6e34c64383 Upgrade Docker image to use Ubuntu 20.04 as a base 2021-10-02 20:09:59 +02:00
Marcin Kulik
9910f6c863 Update build status badge 2021-10-02 16:44:28 +02:00
Marcin Kulik
65559c207e Don't test on EOL-ed Python versions (3.4 and 3.5) 2021-10-02 16:38:01 +02:00
gpotter2
44c782dc6a test_require is deprecated 2021-10-02 16:28:22 +02:00
gpotter2
b906a2a4d3 Use twine instead of setup.py sdist upload
"python setup.py sdist upload"
is deprecated and should not be used. It also doesn't support nice and
fancy markdown (this is why https://pypi.org/project/asciinema/2.0.2/
looks like garbage).

See
https://packaging.python.org/guides/distributing-packages-using-setuptools/
2021-10-02 16:28:22 +02:00
gpotter2
f5e70f9c9a setup.cfg: add LICENSE 2021-10-02 16:28:22 +02:00
gpotter2
a05562f1e9 Move to GithubCI & Twine check 2021-10-02 16:28:22 +02:00
Martin Tournoij
80c9d3dbdc Use os.get_terminal_size()
tput is part of ncurses, which may not be installed.

It still falls back to tput for older Python versions (this was
introduced in 3.3) or for platforms which may not support it.

Fixes #418
2021-10-02 16:15:19 +02:00
Marcin Kulik
d6557c76ef Fix encoding of basic auth header (fixes #364) 2021-10-02 15:48:03 +02:00
freddii
5816099c4b fixed spelling mistake 2021-01-16 17:26:10 +01:00
Marcin Kulik
2439b01ff4 Fix broken link in README 2021-01-03 18:58:24 +01:00
Marcin Kulik
d966bd013c Fix demo cast URL in README 2020-12-28 12:34:35 +01:00
Marcin Kulik
46946e7506 Suggest --overwrite option when dest file exists 2020-05-31 12:42:42 +02:00
Marcin Kulik
c94e898ec1 Don't use new f'' string syntax - it doesn't work on Python <3.6 2020-05-17 23:19:12 +02:00
Marcin Kulik
0eec28ddb2 Configurable hotkeys for playback 2020-05-17 23:19:12 +02:00
Marcin Kulik
c85a4a7acd Configurable hotkeys for recording 2020-05-17 23:19:12 +02:00
Marcin Kulik
4093b42f35 Lower terminal answerback time to 10ms 2020-05-17 23:10:34 +02:00
Devin J. Pohly
e966e09f63 Consume terminal answerbacks in asciinema cat
If the asciicast contains escape sequence queries like "CSI 6 n", the
terminal will both echo and input its responses.  Use the raw() context
manager that we already have to attempt to consume this "input."

There is, unfortunately, no way of finding out exactly when the terminal
has finished its answerbacks.  This patch adds a 50ms wait, which should
be overkill for a local terminal (in my tests, 3ms was usually enough).
For a remote terminal, this number becomes harder to estimate.

Technically this only needs to be done if whatever we're writing to
isatty(), but keep it simple for now.
2020-04-19 13:56:49 +02:00
Michael Osipov
63f27866bd Fix codeset detection on HP-UX
On HP-UX UTF-8 aware locales end with '.utf8'.
2020-04-19 13:49:09 +02:00
Marcin Kulik
76b8248893 Whitespace 2020-04-19 13:46:42 +02:00
Marcin Kulik
e2df16b6b7 Upgrade base Docker image 2020-04-19 13:45:25 +02:00
landonb
6a4ca6f1d2 Bugfix: Ensure ASCIINEMA_REC set on record (#372). 2020-04-19 13:45:07 +02:00
Marcin Kulik
350d5e9d8b Explain env var in custom notification command 2019-09-08 11:30:46 +02:00
Marcin Kulik
e8a493239e Ignore empty ("") custom notification command 2019-09-08 11:30:46 +02:00
Marcin Kulik
bc793d541c Custom notification command + disabling notifications 2019-09-08 11:30:46 +02:00
Marcin Kulik
cf2f8400a2 Use icon with send-notify and terminal-notifier 2019-09-08 11:30:46 +02:00
Marcin Kulik
9875622a0c Add terminal-notifier support 2019-09-08 11:30:46 +02:00
Marcin Kulik
99e2fa99c0 Add libnotify notifier 2019-09-08 11:30:46 +02:00
Marcin Kulik
631831dead Fix double quote escaping in AppleScript notifier 2019-09-08 11:30:46 +02:00
David Bradway
30ed6cb98c fix typo 2019-04-10 11:31:21 +02:00
ibrakap
f993ced914 pretty syntax 2019-04-04 09:01:18 +02:00
Marcin Kulik
bd940e9366 Simplify command building 2019-03-31 19:08:21 +02:00
Marcin Kulik
88ff927102 Put pycodestyle ignores to setup.cfg 2019-03-31 17:48:30 +02:00
Marcin Kulik
99281ca221 Ignore E722 2019-03-30 19:54:13 +01:00
Marcin Kulik
386a8e0f06 First attempt at desktop notifications 2019-03-30 19:54:13 +01:00
Marcin Kulik
50722ebd7c Extract asynchronous processing into separate module 2019-03-30 19:54:13 +01:00
Marcin Kulik
e06cabeb2b Stop time when recording session is paused 2019-03-30 19:54:13 +01:00
Marcin Kulik
53d0dbbfbb "Pausing" is better than "muting" 2019-03-30 19:54:13 +01:00
Marcin Kulik
3ff14875ff pycodestyle 2019-03-30 19:54:13 +01:00
Marcin Kulik
bfa266c470 Document muting 2019-03-30 19:54:13 +01:00
Marcin Kulik
1ad20769eb Mute recording with ctrl+p 2019-03-30 19:54:13 +01:00
KurtPfeifle
334b795d92 Additions to manpage; modify Markdown to better please future Pandoc 2019-03-24 12:27:15 +01:00
KurtPfeifle
8ee921ea6d Include generation date + asciinema version in manpage header 2019-03-24 12:27:15 +01:00
Marcin Kulik
7af03d8a18 Handle time offset in pty.record instead of in writer 2019-03-23 15:01:34 +01:00
Marcin Kulik
b9ece310a3 Move recording details to new recorder module 2019-03-23 14:55:11 +01:00
Marcin Kulik
2d27db20dc Refactor v2 writer 2019-03-23 13:57:45 +01:00
Marcin Kulik
8e29f975d2 Don't overwrite buffering mode in async writer level 2019-03-23 13:20:17 +01:00
Marcin Kulik
13bb071d85 Pass append instead of mode to all writer types 2019-03-23 13:15:39 +01:00
Marcin Kulik
8aecc1d558 Let pty recorder report elapsed time 2019-03-23 12:26:20 +01:00
Marcin Kulik
d56f275a1b Update year in copyright notice 2019-01-12 20:38:12 +01:00