kayos
b9ab36ebe2
apply fix for terminal issue
2021-07-11 18:46:37 -07:00
Masashi SHIBATA
82a9122745
Merge pull request #224 from zaynetro/upgrade-term-pkg
...
Update pkg/term to 1.2.0
2021-03-03 17:56:52 +09:00
Roman Zaynetdinov
20e0658bed
Update pkg/term to 1.2.0
...
This fixes build errors on FreeBSD.
2021-03-03 10:40:15 +02:00
Masashi SHIBATA
8aae7fb1a6
Merge pull request #222 from c-bata/go-1-16
...
Use go 1.16
2021-03-02 03:07:29 +09:00
c-bata
d527d128cd
Use go 1.16
2021-03-02 02:56:59 +09:00
Masashi SHIBATA
8e6eb48b4a
Add Bit as a project using go-prompt.
2020-10-03 17:01:30 +09:00
Masashi SHIBATA
327dcaa3fd
Add topicctl as a project using go-prompt.
2020-09-21 00:13:11 +09:00
Masashi SHIBATA
01aad35f38
Merge pull request #195 from pgollangi/update-dependencies
...
Upgrade all dependencies to latest
2020-09-19 22:15:27 +09:00
Prasanna Kumar
b8f3ef103e
Update pkg/term to latest to fix macOS tests
2020-09-19 18:34:55 +05:30
Prasanna Kumar
1e3a92a88e
Upgrade all dependencies to latest
2020-09-18 22:46:46 +05:30
Masashi SHIBATA
be84dde1ad
Merge pull request #194 from c-bata/update-ci-badge
...
Replace CI status badge
2020-09-19 02:00:40 +09:00
c-bata
c2d9d1ef37
Replace CI status badge
2020-09-19 01:59:00 +09:00
Masashi SHIBATA
5604073010
Merge pull request #191 from pgollangi/fix-issue-190
...
Update pkg/term module to latest and use unix.Termios
2020-09-19 00:16:52 +09:00
Masashi SHIBATA
7e3ac9d2e5
Merge pull request #192 from c-bata/github-actions-test
...
Run tests on GitHub Actions
2020-09-19 00:12:12 +09:00
c-bata
f71eae00d8
Fix lint checks
2020-09-19 00:09:00 +09:00
c-bata
7728c9b990
Remove travis-ci config
2020-09-19 00:06:03 +09:00
c-bata
05200bdf83
Run tests on GitHub Actions
2020-09-18 23:48:11 +09:00
Prasanna Kumar
606144aec7
Update pkg/term module and use unix.Termios to make it compatible with latest version
...
Resolves #190
2020-09-18 19:23:50 +05:30
Masashi SHIBATA
56c224c88a
Add qsctl as a project using go-prompt.
2020-09-03 18:01:33 +09:00
Masashi SHIBATA
d9afa76328
Merge pull request #180 from benaranguren/master
...
termio: Set character width to 8 bits
2020-08-21 13:50:34 +09:00
Masashi SHIBATA
8717360802
Delete FUNDING.yml
2020-07-15 16:58:29 +09:00
c-bata
667e20b2c8
Add rueyaa332266/ezcron as a project using go-prompt
2020-07-12 03:52:16 +09:00
Ben Aranguren
e18fab1746
termio: Set character width to 8 bits
...
When setting terminal mode, the character size is getting cleared and
defaults to CS5 which causes the display to be garbled. Since the
purpose of this libaray is to mainly output readable characters, CS8 is
a better value.
This can be easily seen when launching go-prompt over serial connection.
Bug: #179
Change-Id: I4c9d13fad699e09aa9f4f665b252cebdd63614a7
2020-06-09 13:09:21 -07:00
c-bata
d043be0763
Add docker-slim as a project using go-prompt
2020-03-21 23:08:17 +09:00
Masashi SHIBATA
05d87ebe0e
Merge pull request #165 from c-bata/remove-empty-if-statements
...
Remove empty if statements
2020-02-28 17:04:31 +09:00
c-bata
91656a4278
Remove empty if statements
2020-02-28 16:50:26 +09:00
Masashi SHIBATA
5555ab31eb
Merge pull request #164 from VonC/lint-fast
...
Fix golangci-lint -fast warnings
2020-02-28 16:47:53 +09:00
Masashi SHIBATA
768273a734
Merge pull request #158 from UiP9AV6Y/feature-initial-text
...
add support for managing the initial buffer content.
2020-02-28 12:19:16 +09:00
Gordon Bleux
715666277d
add support for managing the initial buffer content.
...
the option will modify the buffer content upon startup and works
in combination with `OptionShowCompletionAtStart()`.
2020-02-27 19:01:43 +01:00
VonC
20fd13d133
Fix golint-cli -fast warnings
2020-02-24 14:13:36 +01:00
Masashi SHIBATA
269b041399
Merge pull request #163 from VonC/fixPosixWriter
...
Don't test render on Windows
2020-02-23 12:18:56 +09:00
VonC
bc0817f98a
Don't test render on Windows
2020-02-22 20:47:48 +01:00
VonC
39d1a739c2
Trigger ExitChecker on pressed keys ( #162 )
...
* prompt.go handleKeyBinding can indicate one should Exit if an exit checker function is set
* Use new name exitChecker instead of old exitor
* ExitChecker API change: breakline bool
- breakline true means the executor has been called: check for exit
- breakline false means no executor, just a character typed: check for
exit
2020-02-22 13:16:28 +09:00
VonC
0d097872c2
ExitChecker: Exit go-prompt Run() for loop ( #161 )
2020-02-22 00:30:47 +09:00
Masashi SHIBATA
c4c9e8bd65
Merge pull request #150 from gohumble/master
...
Attach last key stroke to document
2020-02-20 17:54:45 +09:00
Masashi SHIBATA
b662637d18
Merge pull request #141 from VonC/arrow
...
Down Arrow for first completion
2020-02-20 16:53:46 +09:00
VonC
b6bf267a4e
Put completionOnDown option in handleCompletionKeyBinding
2020-02-20 08:36:07 +01:00
c-bata
3a148d1647
Add gh-prompt: An interactive GitHub CLI featuring auto-complete
2020-02-13 20:46:36 +09:00
c-bata
0f36fac459
Add mstrYoda/docker-shell as a project using go-prompt
2020-01-26 20:49:49 +09:00
Deniz Cakan
1002d440a3
attach last key stroke to document
2019-12-22 21:18:48 +01:00
c-bata
97fbae615b
Add fishi0x01/vsh in the project using go-prompt
2019-11-30 16:05:24 +09:00
VonC
afba691149
Fix comment (lint)
2019-08-27 08:00:09 +02:00
VonC
49fa645ffe
Add completionOnDown option
2019-08-26 18:25:26 +02:00
VonC
df850582f4
add down arrow completion
2019-08-26 18:14:05 +02:00
Masashi SHIBATA
0f95e1d1de
Merge pull request #140 from odino/master
...
Added OptionBreakLineCallback, to run a callback every time there's a line break
2019-08-26 22:48:12 +09:00
odino
c7735f732d
make BreaklineCallback private (`breaklineCallback`)
2019-08-26 17:41:23 +04:00
odino
dbd5467376
Added document as an argument to the LineBreakCallback
2019-08-16 14:37:33 +04:00
odino
ea717205ca
Added OptionBreakLineCallback, to run a callback every time there's a line break
...
It's useful to run a function everytime there's a line break -- Enter as well as, for example, ControlC.
With this PR, a new option is added to assign a callback that gets
called every time `renderer.BreakLine()` is called.
Added a test that makes sure the renderer doesn't break if the callback is
not specified, as well as to check that it runs ok when the callback executes.
Just to give a bit more of context: in [ABS](https://github.com/abs-lang/abs )
we are trying to implement ControlR (reverse search), and need to clear
the search selection every time the user "clears" the console, either by
pressing enter or by clearing the current line (eg. ControlC).
2019-08-16 04:30:44 +04:00
c-bata
2492e11b98
Separate issue template
2019-07-31 22:13:43 +09:00
c-bata
6badcefd40
Remove OpenCollective links from README
2019-07-28 16:38:42 +09:00