     @scroll_left = left
     @scroll_right = right
 
-  nv_update_fg: (rgb) -> @cursor.style.borderColor = @fg_color = @get_color_string(rgb)
-  nv_update_bg: (rgb) -> @bg_color = @get_color_string(rgb)
+  nv_update_fg: (rgb) -> @cursor.style.borderColor = @fg_color = if rgb == -1 then DEFAULT_FG else @get_color_string(rgb)
+  nv_update_bg: (rgb) -> @bg_color = if rgb == -1 then DEFAULT_BG else @get_color_string(rgb)
 
 module.exports = UI


shell = require 'shell'
EventEmitter = require('events').EventEmitter

# keyIdentifier -> vim key name
KEYMAP =

      clr_top = dst_bottom + 1
      clr_bottom = src_bottom
    else
      src_bottom += row_count
      dst_top -= row_count
      clr_top = src_top
