Comments (4)
whoops, sorry -- it looks like this was marked as a defect, which it really
isn't :)
Original comment by [email protected]
on 5 Oct 2010 at 3:33
from conque.
Adding this as a configuration option sounds like a good idea, though it
probably won't be the default mode.
Original comment by [email protected]
on 5 Oct 2010 at 5:11
- Changed state: Accepted
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from conque.
After fooling a bit with the source, I managed to add this feature as follows
(arguably not the most elegant solution)
--- conque_1.1/autoload/conque_term.vim 2010-05-28 07:43:25.000000000 +0200
+++ conque_term.vim 2010-10-05 20:46:23.199629687 +0200
@@ -575,8 +575,11 @@
# wrap CUF/CUB around line breaks
wrap_cursor = False
+ # Set when the process is terminated
+ leave = False
+
# }}}
# constructor
def __init__(self): # {{{
@@ -605,10 +608,8 @@
# }}}
# write to pty
def write(self, input): # {{{
-
-
# check if window size has changed
self.update_window_size()
# write and read
@@ -617,8 +618,13 @@
# }}}
# read from pty, and update buffer
def read(self, timeout = 1): # {{{
+ if not self.proc.get_status():
+ self.leave = True
+ if vim.current.buffer.number == self.screen.buffer.number:
+ vim.command('bwipeout! ' + str(self.screen.buffer.number))
+ return
# read from subprocess
output = self.proc.read(timeout)
# and strip null chars
output = output.replace(chr(0), '')
@@ -715,8 +721,10 @@
# for polling
def auto_read(self): # {{{
self.read(1)
+ if self.leave:
+ return
if self.c == 1:
vim.command('call feedkeys("\<F23>", "t")')
else:
vim.command('call feedkeys("\<F22>", "t")')
Original comment by [email protected]
on 5 Oct 2010 at 6:47
from conque.
I added a slightly modified version of your code to the new 1.2 release.
Set...
let g:ConqueTerm_CloseOnEnd = 1
...in your .vimrc
Thanks.
Original comment by [email protected]
on 12 Oct 2010 at 1:27
- Changed state: Fixed
from conque.
Related Issues (20)
- Vim exits catching deadly signal HUP HOT 2
- Error mapping message when pausing terminal with F8 HOT 1
- incorrect display when insert/delete characters into a pending command
- Python Interactive Shell doesn't work after 2 HOT 1
- Add support to wrap text written to terminal
- Copy/Paste not working with MacVim
- Bash inside Vim not working properly HOT 1
- F9 Crashes Vim
- Python files missing from official git repo
- Error on exit
- Default g:ConqueTerm_CWInsert = 1 out of the box
- Non-blocking, asynchronous terminal emulation in Vim.
- Vim inside Vim only partially works
- Conque confused about the position of the prompt if I edit previous output interactively
- vim nested in conqueterm
- Can you push version 2.3 to vim-scripts?
- Problem on CentOS 5.5 vim 7.0.237
- Registers do not work properly in ConqueTerm HOT 5
- Fix CloseOnEnd feature HOT 1
- Does not work with MacVim (ImportError)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conque.