rapid7/metasploit-framework — pull request #4337 by limhoff-r7 (2014-12-08 20:42:20+00:00)
Title: Fix prompt coloring on Windows

MSP-11669

Set output stream for RbReadline (rl_outstream) to the
Rex::Ui::Text::Output::Stdio, which will use translate the ANSI color
escapes to set_color calls in Windows.

# Verification Steps

## Linux/OSX

### rb-readline
- [ ] `msfconsole`
- [ ] VERIFY prompt is colored
- [ ] `use exploit/`
- [ ] ``
- [ ] VERIFY pager is displayed
- [ ] VERIFY `--More--` is printed at bottom of page
- [ ] ``
- [ ] VERIFY next page is shown
- [ ] ``
- [ ] VERIFY pager goes away and prompt restored with `use exploit/`
- [ ] `use exploit/windows/smb/ms08_067_netapi`
- [ ] VERIFY prompt changes to show shortname (ms08_067_netapi) in red in prompt.
- [ ] `exit`

### GNU readline
- [ ] `msfconsole -L`
- [ ] VERIFY prompt is colored
- [ ] `use exploit/`
- [ ] ``
- [ ] VERIFY pager is displayed
- [ ] VERIFY `--More--` is printed at bottom of page
- [ ] ``
- [ ] VERIFY next page is shown
- [ ] ``
- [ ] VERIFY pager goes away and prompt restored with `use exploit/`
- [ ] `use exploit/windows/smb/ms08_067_netapi`
- [ ] VERIFY prompt changes to show shortname (ms08_067_netapi) in red in prompt.
- [ ] `exit`

## Windows
- [ ] Start > All Programms > Metasploit > Metasploit Console
- [ ] `msfconsole`
- [ ] VERIFY prompt is colored
- [ ] `use exploit/`
- [ ] ``
- [ ] VERIFY pager is displayed
- [ ] VERIFY `--More--` is printed at bottom of page
- [ ] ``
- [ ] VERIFY next page is shown
- [ ] ``
- [ ] VERIFY pager goes away and prompt restored with `use exploit/`
- [ ] `use exploit/windows/smb/ms08_067_netapi`
- [ ] VERIFY prompt changes to show shortname (ms08_067_netapi) in red in prompt.
- [ ] `exit`