Fix arrow keys in Console.ReadKey() on Unix
Fix arrow keys in Console.ReadKey() on Unix

We interpret the escape strings sent to stdin in order to determine what keys were pressed, and we do so using the terminfo data for the current terminal.  However, the terminfo data is written to assume "application" mode, but apps are invoked by default in "normal" mode.  To enter "application" mode, we need to emit the keypad_xmit string.

The arrow keys in particular have terminfo strings affected by normal vs application mode.  Before this change, using the arrow keys with ReadKey() would result in the values being misterpreted.  Now they're correctly understood.

Yanjing123/corefx,josguil/corefx,Jiayili1/corefx,Ermiar/corefx,alexperovich/corefx,gkhanna79/corefx,manu-silicon/corefx,kkurni/corefx,janhenke/corefx,YoupHulsebos/corefx,Petermarcu/corefx,alphonsekurian/corefx,shimingsg/corefx,richlander/corefx,benjamin-bader/corefx,weltkante/corefx,jcme/corefx,MaggieTsang/corefx,mmitche/corefx,billwert/corefx,mafiya69/corefx,stone-li/corefx,billwert/corefx,nchikanov/corefx,nbarbettini/corefx,Priya91/corefx-1,ravimeda/corefx,stone-li/corefx,krytarowski/corefx,vidhya-bv/corefx-sorting,ptoonen/corefx,alexandrnikitin/corefx,stone-li/corefx,mafiya69/corefx,JosephTremoulet/corefx,mmitche/corefx,alexandrnikitin/corefx,bitcrazed/corefx,rubo/corefx,Ermiar/corefx,stone-li/corefx,alexperovich/corefx,690486439/corefx,the-dwyer/corefx,cydhaselton/corefx,JosephTremoulet/corefx,stephenmichaelf/corefx,shahid-pk/corefx,pallavit/corefx,benpye/corefx,jlin177/corefx,seanshpark/corefx,ptoonen/corefx,khdang/corefx,cartermp/corefx,rubo/corefx,twsouthwick/corefx,mokchhya/corefx,mellinoe/corefx,shahid-pk/corefx,dotnet-bot/corefx,benjamin-bader/corefx,DnlHarvey/corefx,gkhanna79/corefx,mazong1123/corefx,BrennanConroy/corefx,krytarowski/corefx,rahku/corefx,mmitche/corefx,Priya91/corefx-1,twsouthwick/corefx,dhoehna/corefx,jhendrixMSFT/corefx,krytarowski/corefx,seanshpark/corefx,bitcrazed/corefx,mellinoe/corefx,josguil/corefx,ViktorHofer/corefx,akivafr123/corefx,manu-silicon/corefx,bitcrazed/corefx,jlin177/corefx,mazong1123/corefx,alexperovich/corefx,janhenke/corefx,jhendrixMSFT/corefx,n1ghtmare/corefx,bitcrazed/corefx,elijah6/corefx,alexandrnikitin/corefx,jlin177/corefx,alphonsekurian/corefx,jeremymeng/corefx,fgreinacher/corefx,rahku/corefx,mellinoe/corefx,dhoehna/corefx,Yanjing123/corefx,benpye/corefx,Petermarcu/corefx,khdang/corefx,krk/corefx,shmao/corefx,cydhaselton/corefx,benpye/corefx,JosephTremoulet/corefx,cydhaselton/corefx,rjxby/corefx,shimingsg/corefx,nchikanov/corefx,jcme/corefx,shimingsg/corefx,ericstj/corefx,stephenmichaelf/corefx,ericstj/corefx,Petermarcu/corefx,nchikanov/corefx,richlander/corefx,690486439/corefx,Jiayili1/corefx,bitcrazed/corefx,DnlHarvey/corefx,Chrisboh/corefx,jhendrixMSFT/corefx,billwert/corefx,rjxby/corefx,dotnet-bot/corefx,manu-silicon/corefx,MaggieTsang/corefx,gkhanna79/corefx,SGuyGe/corefx,ViktorHofer/corefx,Yanjing123/corefx,lggomez/corefx,ericstj/corefx,weltkante/corefx,Petermarcu/corefx,mokchhya/corefx,lggomez/corefx,alexandrnikitin/corefx,pallavit/corefx,shahid-pk/corefx,jcme/corefx,parjong/corefx,mmitche/corefx,n1ghtmare/corefx,tijoytom/corefx,ellismg/corefx,tijoytom/corefx,DnlHarvey/corefx,adamralph/corefx,ericstj/corefx,krytarowski/corefx,yizhang82/corefx,Jiayili1/corefx,akivafr123/corefx,parjong/corefx,stone-li/corefx,cartermp/corefx,nbarbettini/corefx,iamjasonp/corefx,manu-silicon/corefx,parjong/corefx,weltkante/corefx,ravimeda/corefx,rjxby/corefx,dhoehna/corefx,jeremymeng/corefx,YoupHulsebos/corefx,axelheer/corefx,fgreinacher/corefx,dsplaisted/corefx,alexperovich/corefx,yizhang82/corefx,janhenke/corefx,alexandrnikitin/corefx,manu-silicon/corefx,lggomez/corefx,elijah6/corefx,Petermarcu/corefx,axelheer/corefx,zhenlan/corefx,wtgodbe/corefx,n1ghtmare/corefx,the-dwyer/corefx,mafiya69/corefx,parjong/corefx,manu-silicon/corefx,alphonsekurian/corefx,pallavit/corefx,vidhya-bv/corefx-sorting,pallavit/corefx,richlander/corefx,Jiayili1/corefx,janhenke/corefx,Priya91/corefx-1,benjamin-bader/corefx,MaggieTsang/corefx,mafiya69/corefx,shimingsg/corefx,shmao/corefx,690486439/corefx,mellinoe/corefx,nchikanov/corefx,janhenke/corefx,richlander/corefx,lggomez/corefx,alexperovich/corefx,nbarbettini/corefx,marksmeltzer/corefx,jlin177/corefx,khdang/corefx,tijoytom/corefx,alphonsekurian/corefx,pallavit/corefx,shahid-pk/corefx,krk/corefx,DnlHarvey/corefx,n1ghtmare/corefx,SGuyGe/corefx,tijoytom/corefx,cydhaselton/corefx,iamjasonp/corefx,twsouthwick/corefx,Priya91/corefx-1,stephenmichaelf/corefx,tstringer/corefx,shmao/corefx,cartermp/corefx,JosephTremoulet/corefx,Yanjing123/corefx,stephenmichaelf/corefx,zhenlan/corefx,parjong/corefx,wtgodbe/corefx,mmitche/corefx,stephenmichaelf/corefx,tijoytom/corefx,dsplaisted/corefx,josguil/corefx,seanshpark/corefx,rahku/corefx,alexperovich/corefx,adamralph/corefx,Chrisboh/corefx,ravimeda/corefx,Priya91/corefx-1,rahku/corefx,elijah6/corefx,benpye/corefx,elijah6/corefx,akivafr123/corefx,shahid-pk/corefx,marksmeltzer/corefx,dhoehna/corefx,Jiayili1/corefx,Ermiar/corefx,MaggieTsang/corefx,rubo/corefx,ViktorHofer/corefx,marksmeltzer/corefx,the-dwyer/corefx,Chrisboh/corefx,ravimeda/corefx,ViktorHofer/corefx,mmitche/corefx,marksmeltzer/corefx,tstringer/corefx,elijah6/corefx,richlander/corefx,nbarbettini/corefx,richlander/corefx,Chrisboh/corefx,cartermp/corefx,mazong1123/corefx,alphonsekurian/corefx,nchikanov/corefx,josguil/corefx,krk/corefx,rjxby/corefx,jlin177/corefx,jcme/corefx,mellinoe/corefx,kkurni/corefx,JosephTremoulet/corefx,yizhang82/corefx,twsouthwick/corefx,ptoonen/corefx,shimingsg/corefx,Jiayili1/corefx,Chrisboh/corefx,rjxby/corefx,SGuyGe/corefx,dhoehna/corefx,billwert/corefx,mokchhya/corefx,tstringer/corefx,axelheer/corefx,nbarbettini/corefx,JosephTremoulet/corefx,krk/corefx,mazong1123/corefx,marksmeltzer/corefx,Chrisboh/corefx,MaggieTsang/corefx,nbarbettini/corefx,YoupHulsebos/corefx,tstringer/corefx,shmao/corefx,MaggieTsang/corefx,n1ghtmare/corefx,the-dwyer/corefx,ViktorHofer/corefx,benjamin-bader/corefx,yizhang82/corefx,YoupHulsebos/corefx,weltkante/corefx,seanshpark/corefx,wtgodbe/corefx,ptoonen/corefx,cydhaselton/corefx,jeremymeng/corefx,Petermarcu/corefx,manu-silicon/corefx,khdang/corefx,ptoonen/corefx,tstringer/corefx,kkurni/corefx,dhoehna/corefx,cydhaselton/corefx,weltkante/corefx,ravimeda/corefx,rahku/corefx,wtgodbe/corefx,JosephTremoulet/corefx,stone-li/corefx,mazong1123/corefx,stephenmichaelf/corefx,jhendrixMSFT/corefx,weltkante/corefx,Ermiar/corefx,ericstj/corefx,fgreinacher/corefx,rahku/corefx,YoupHulsebos/corefx,tijoytom/corefx,ViktorHofer/corefx,shimingsg/corefx,the-dwyer/corefx,seanshpark/corefx,yizhang82/corefx,the-dwyer/corefx,mazong1123/corefx,690486439/corefx,wtgodbe/corefx,krytarowski/corefx,gkhanna79/corefx,gkhanna79/corefx,axelheer/corefx,nchikanov/corefx,rahku/corefx,Petermarcu/corefx,jlin177/corefx,adamralph/corefx,MaggieTsang/corefx,marksmeltzer/corefx,zhenlan/corefx,kkurni/corefx,yizhang82/corefx,Yanjing123/corefx,yizhang82/corefx,ptoonen/corefx,690486439/corefx,dotnet-bot/corefx,iamjasonp/corefx,mazong1123/corefx,tstringer/corefx,khdang/corefx,iamjasonp/corefx,dotnet-bot/corefx,gkhanna79/corefx,elijah6/corefx,krk/corefx,shmao/corefx,richlander/corefx,mafiya69/corefx,vidhya-bv/corefx-sorting,ellismg/corefx,jhendrixMSFT/corefx,dotnet-bot/corefx,wtgodbe/corefx,Jiayili1/corefx,shmao/corefx,krk/corefx,zhenlan/corefx,jcme/corefx,marksmeltzer/corefx,zhenlan/corefx,pallavit/corefx,krytarowski/corefx,billwert/corefx,krk/corefx,benjamin-bader/corefx,lggomez/corefx,jeremymeng/corefx,dotnet-bot/corefx,tijoytom/corefx,elijah6/corefx,parjong/corefx,mafiya69/corefx,SGuyGe/corefx,alexperovich/corefx,mokchhya/corefx,iamjasonp/corefx,DnlHarvey/corefx,alphonsekurian/corefx,stone-li/corefx,benpye/corefx,ellismg/corefx,dotnet-bot/corefx,twsouthwick/corefx,ericstj/corefx,cartermp/corefx,twsouthwick/corefx,gkhanna79/corefx,jeremymeng/corefx,rjxby/corefx,krytarowski/corefx,Ermiar/corefx,ellismg/corefx,lggomez/corefx,twsouthwick/corefx,ericstj/corefx,jhendrixMSFT/corefx,billwert/corefx,mokchhya/corefx,jlin177/corefx,ellismg/corefx,rubo/corefx,janhenke/corefx,ellismg/corefx,seanshpark/corefx,kkurni/corefx,jcme/corefx,vidhya-bv/corefx-sorting,the-dwyer/corefx,rjxby/corefx,parjong/corefx,DnlHarvey/corefx,YoupHulsebos/corefx,shimingsg/corefx,BrennanConroy/corefx,DnlHarvey/corefx,zhenlan/corefx,josguil/corefx,Priya91/corefx-1,Ermiar/corefx,YoupHulsebos/corefx,axelheer/corefx,SGuyGe/corefx,cartermp/corefx,benjamin-bader/corefx,SGuyGe/corefx,iamjasonp/corefx,ravimeda/corefx,lggomez/corefx,mokchhya/corefx,akivafr123/corefx,benpye/corefx,axelheer/corefx,Ermiar/corefx,ViktorHofer/corefx,stephenmichaelf/corefx,mmitche/corefx,ravimeda/corefx,alphonsekurian/corefx,josguil/corefx,nchikanov/corefx,shahid-pk/corefx,seanshpark/corefx,shmao/corefx,dsplaisted/corefx,wtgodbe/corefx,zhenlan/corefx,cydhaselton/corefx,nbarbettini/corefx,jhendrixMSFT/corefx,dhoehna/corefx,akivafr123/corefx,kkurni/corefx,vidhya-bv/corefx-sorting,mellinoe/corefx,rubo/corefx,khdang/corefx,weltkante/corefx,iamjasonp/corefx,BrennanConroy/corefx,ptoonen/corefx,billwert/corefx,fgreinacher/corefx