Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add ctrl-z support #447

Merged
merged 5 commits into from
Jul 6, 2023
Merged

Conversation

yurenchen000
Copy link
Contributor

@yurenchen000 yurenchen000 commented May 2, 2023

implement feat-req #297

Changes:

  • update gocui to v1.1.0 // in order to suspend/resume
  • fix layer cursor move // adapt for gocui v1.x
  • add ctrl+z support

only tested on ubuntu22, build with go1.18

@tonymet
Copy link

tonymet commented May 2, 2023

i pulled your branch, built, tested and it works for me.

BUILD

$ make build

RUN / TEST

$ ./dist/dive_linux_amd64/dive alpine

RESULTS

  • ctrl-z works ✅
  • fg works ✅

TEST Environment

$ git log -1
6032f68 - (HEAD, yurenchen0000/feat-ctrl-z) feat: add ctrl+z support (17 hours ago) <chen>

$ go version
go version go1.17.7 linux/amd64


$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

$ uname -a 
Linux ip-172-31-38-22.us-west-2.compute.internal 4.14.305-227.531.amzn2.x86_64 #1 SMP Tue Feb 14 09:55:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

wagoodman
wagoodman previously approved these changes Jul 6, 2023
Copy link
Owner

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slick! Thanks for adding job control (and for the cursor fix) 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Ctrl-Z for job control.
3 participants