Skip to content

Error when trying to activate PredictionMode #1992

@belotn

Description

@belotn

Hello,

When i try to activate PredictionMode, i ran into an error saying that the mode cannot be activated.

Environment

PSReadline version: 2.1.0
os: 6.3.9600.16384 (winblue_rtm.130821-1623)
PS file version: 10.0.14409.1005 (rs1_srvoob.161208-1155)
HostName: ConsoleHost
BufferWidth: 170
BufferHeight: 500

Exception report

Set-PSReadLineOption : The predictive suggestion feature cannot be enabled because the console output doesn't support virtual terminal processing or it's redirected.
Au caractère Ligne:1 : 1

  • Set-PSReadLineOption -PredictionSource History
  •   + CategoryInfo          : NotSpecified: (:) [Set-PSReadLineOption], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.SetPSReadLineOption
    
    

Steps to reproduce

Set-PSReadLineOption -PredictionSource History

Expected behavior

Actual behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions