]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main: Slight refactor of main. Improve color situation. 13/1713/4
authorWalter Doekes <walter+asterisk@wjd.nu>
Wed, 25 Nov 2015 19:29:42 +0000 (20:29 +0100)
committerWalter Doekes <walter+asterisk@wjd.nu>
Wed, 25 Nov 2015 19:29:42 +0000 (20:29 +0100)
commitb2787876d67cb7d47ce1c7a87db515adcacc151f
tree40076b7427cc0222c23ea73e98bfe69a85b0c6f6
parentb75f587d159cb68ed24b6ee1007ed062f669d79f
main: Slight refactor of main. Improve color situation.

Several issues are addressed here:
- main() is large, and half of it is only used if we're not rasterisk;
  fixed by spliting up the daemon part into a separate function.
- Call ast_term_init from rasterisk as well.
- Remove duplicate code reading/writing asterisk history file.
- Attempt to tackle background color issues and color changes that
  occur. Tested by starting asterisk -c until the colors stopped
  changing at odd locations.

ASTERISK-25585 #close

Change-Id: Ib641a0964c59ef9fe6f59efa8ccb481a9580c52f
include/asterisk/term.h
main/asterisk.c
main/term.c