]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main: Slight refactor of main. Improve color situation. 98/1698/6
authorWalter Doekes <walter+asterisk@wjd.nu>
Wed, 25 Nov 2015 19:29:30 +0000 (20:29 +0100)
committerWalter Doekes <walter+asterisk@wjd.nu>
Wed, 25 Nov 2015 19:29:30 +0000 (20:29 +0100)
commit4450cf89d877efe46b5ceeadc4d7a7b85a027dc2
tree5b8408653af3ef71f0ed6c7272b47cd03a5c4ebb
parent78734aadf46795094955e6783d5e6f1223b7fa65
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