Fix M-p when no tty is present
Fix M-p when no tty is present

wingyplus/wmii,jerluc/wmii,wingyplus/wmii,wingyplus/wmii,jerluc/wmii,Sirikid/wmii,sigmavirus24/wmii,wingyplus/wmii,darkfeline/wmii,Sirikid/wmii,darkfeline/wmii,jerluc/wmii,Sirikid/wmii,sigmavirus24/wmii,jerluc/wmii,sigmavirus24/wmii,darkfeline/wmii,Sirikid/wmii,darkfeline/wmii,rvedam/wmii,rvedam/wmii,sigmavirus24/wmii,rvedam/wmii,rvedam/wmii,rvedam/wmii,darkfeline/wmii,wingyplus/wmii,jerluc/wmii,Sirikid/wmii,sigmavirus24/wmii