Skip to content

Add ghostel backend#162

Open
scheidan wants to merge 5 commits into
tpapp:masterfrom
scheidan:ghostel-backend
Open

Add ghostel backend#162
scheidan wants to merge 5 commits into
tpapp:masterfrom
scheidan:ghostel-backend

Conversation

@scheidan

Copy link
Copy Markdown

Adding support for ghostel terminal backend, adressing #161.

It is working fine on my machine; it is behaving like vterm.
I'm not an Elisp expert, so probably the implementation could be more elegant.

@tpapp tpapp left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks, new backends are welcome, I just have some questions.

Comment thread julia-repl.el

(with-eval-after-load 'ghostel

(defvar ghostel--process)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you please explain what this is for? You are not setting it anywhere.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

It is used to see if the Julia process is still alive. I've added a comment.
This is a bit dirty because it is an internal variable of ghostel.el but I didn't figure out a better way.

Comment thread julia-repl.el
Comment on lines +277 to +278
(defvar ghostel-use-native-pty)
(defvar ghostel-buffer-name-function)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Similarly, what are these for? You are just setting them to nil.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

These are also variables from ghostel.el. The first one controls how the PTY is controlled. Setting it to nil uses the standard Emacs process machinery. Setting ghostel-buffer-name-function) to nil makes sure that ghostel.el does not override the buffer name.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I also added a short comment for this

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.

2 participants