~versable/finalterm/finalterm

« back to all changes in this revision

Viewing changes to data/Startup/bash_startup.in

  • Committer: Philipp Emanuel Weidmann
  • Date: 2014-11-15 12:57:09 UTC
  • Revision ID: git-v1:39b078b2a96a5c3c9e74f92b1929f383d220ca8b
Fix #377

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
# Logic for prompt and command detection
35
35
 
36
 
function send_return_code() {
 
36
precmd() {
37
37
        # Send sequence containing the return code of the last command
38
38
        send_control_sequence "$(final_term_control_sequence 'D' "$?")"
39
 
}
40
 
PROMPT_COMMAND=send_return_code;$PROMPT_COMMAND
41
 
 
42
 
precmd() {
43
39
        # Send sequence marking a command prompt
44
40
        send_control_sequence "$(final_term_control_sequence 'A')"
45
41
}